[R] Timezone problem with 3.4.2

2017-11-30 Thread Dennis Fisher
1] "2017-12-01" Warning message: In as.POSIXlt.POSIXct(Sys.time()) : unknown timezone 'zone/tz/2017c.1.0/zoneinfo/America/Los_Angeles' There is nothing odd about the date/time settings on the computer. I then tried: > Sys.timezone() [1] NA Previously, there was not a pro

Re: [R] Timezone problem with 3.4.2

2017-11-30 Thread Dennis Fisher
Mark Thanks for pointing this out. I did a default installation of R. Does this mean that I need to reinstall from the command line? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com <http://www.plesstha

[R] Help with regular expressions

2018-02-12 Thread Dennis Fisher
ssion code to accomplish this? Thanks. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https

[R] Problem with geterrmessage()

2018-02-22 Thread Dennis Fisher
gure out how to do so. Any suggestions would be welcome. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

Re: [R] Problem with geterrmessage()

2018-02-22 Thread Dennis Fisher
Luke Thanks — I revised the code to: ERRORMESSAGE <- try(source(USERSCRIPTFILE, local=T), silent=T) print(ERRORMESSAGE) now returns: $value [1] 0 $visible [1] FALSE Not clear what to make of that. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax:

[R] Using quantmod to obtain current Dow Jones index

2017-09-06 Thread Dennis Fisher
e Open High Low Volume ^DJI N/A N/A N/A N/A N/A N/A N/A Two questions: 1. Is there some way to obtain the current DJI using quantmod? 2. If not, can someone suggest alternatives? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-8

[R] Regression expression to delete one or more spaces at end of string

2016-08-02 Thread Dennis Fisher
surprise, characters other than the trailing space were deleted but the trailing space remained. Guidance on the correct syntax would be appreciated. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com

[R] Efficient means to link two data frames

2016-09-29 Thread Dennis Fisher
would then append the corresponding “Value” in the TestValue column The result would be: TestDay TestValue 1 4 103 2 1184 3 15 109 I can accomplish this with brute force but I suspect that there is some clever day to vectorize this. Any help would be appreciated

[R] Implementation of contrasts

2015-07-07 Thread Dennis Fisher
<- c(1, 1, 1, -3)/3 without success (they yielded results markedly different from SAS) I have searched the web extensively but the explanations of contrasts in R are not particularly understandable. Can anyone help me understand the specifics of this situation? Thanks in advance. Dennis Dennis F

[R] Vectorizing a task

2015-04-14 Thread Dennis Fisher
The command: paste0("c(", paste(paste(ALLSTART, ALLEND, sep=":"), collapse=","), ")") creates the text for START.to.END, but I can’t figure out how to evaluate that expression. I could build the vector step-by-step but that seems quite inefficient.

[R] duplicated function

2014-11-18 Thread Dennis Fisher
)) If my suggestion would yield unintended consequences, it can certainly be ignored. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com [[alternativ

[R] Accessing defunct package

2015-09-25 Thread Dennis Fisher
t’ Other than reinstalling an old version of R (< 3.0.0), is there some way that I can use the package? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com

Re: [R] Accessing defunct package

2015-09-25 Thread Dennis Fisher
ñåºA Other than editing the object to remove errant text, is there some general way to prevent this error? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com > On Sep 25, 2015, a

[R] Multibyte strings

2015-09-25 Thread Dennis Fisher
around would be to edit out multibyte strings. Is there a simple way to find and replace them? Or is there some other clever approach that bypasses the problem? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-8

Re: [R] Multibyte strings

2015-09-26 Thread Dennis Fisher
tted using text files (*.TXT) and the > data should be submitted using SAS transport files (*.XPT). Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com > On Sep 26, 2015, at 5:5

Re: [R] Accessing objects manipulated in a function

2016-05-14 Thread Dennis Fisher
command. Problem solved. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com > On May 14, 2016, at 9:45 AM, Jeff Newmiller wrote: > > I think you have boxed yourself into a corner, much like someone pai

[R] Removing script file

2008-07-29 Thread Dennis Fisher
is successful and returns: > > file.remove("x") > [1] TRUE and the file is deleted In Windows XP, it returns: > [1] FALSE and the file is not deleted. I realize that this is an OS issue rather than an issue with execution of the command. Is there some means to delete the sc

[R] Moving Rterm.exe to another location

2009-09-03 Thread Dennis Fisher
from a folder other the bin? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-415-564-2220 www.PLessThan.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinf

Re: [R] Moving Rterm.exe to another location

2009-09-03 Thread Dennis Fisher
uwe that is brilliant - i was not aware of that command. the solution is now apparent: as you suggest, i can access that PID, write it to a file, then search for that file, reads it contents, etc. thanks. dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866

[R] Adding to the middle of a vector

2009-09-07 Thread Dennis Fisher
or[1:4], NewElement, Vector[5:10]) However, I suspect that there is a more elegant solution. Any proposals? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-415-564-2220 www.PLessThan.com

[R] Identifying special characters in a text file

2010-02-11 Thread Dennis Fisher
yone has a better approach to this problem. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com __ R-help@r-project.org mailing list https

[R] Writing dataframes to SAS XPT format

2010-03-17 Thread Dennis Fisher
). Has anyone developed such a function? If so, would you be willing to share it? Better yet, post it to CRAN so that it is available to all users. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.

[R] Printing Unicode characters in a PDF document

2010-03-20 Thread Dennis Fisher
7; in 'mbcsToSbcs': dot substituted for > 5: In text.default(1, 1, "μ") : > conversion failure on 'μ' in 'mbcsToSbcs': dot substituted for In contrast, when I use a quartz device: > plot(1,1, type="n") > text(1,1, "\u3BC"

[R] shading an area of a graphic

2010-03-24 Thread Dennis Fisher
delineation is a curve (which I can describe by an equation). In theory, I could divide the x-axis into a large number of regions, then draw a series of polygons side by side, the top / bottom borders of which are lines. Is there a more elegant solution? Dennis Dennis Fisher MD P < (The &quo

[R] string width calculation

2010-03-27 Thread Dennis Fisher
s of inches - so I need to normalize them to the width of the figure (if outer=T, use width of the page) Unfortunately, spacing is not perfect. Perhaps I misunderstand how "adj" is applied or I am apply. Can anyone help me to understand how "adj" is applied? Thanks

[R] Determining whether "plot.new" has been called

2010-04-28 Thread Dennis Fisher
led? Thanks in advance. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] Deleting a column in a dataframe by name

2009-09-29 Thread Dennis Fisher
mplish this? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-415-564-2220 www.PLessThan.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do rea

[R] Determining which file is newer

2009-10-23 Thread Dennis Fisher
Testfile4421FALSE 755 2009-10-23 08:59:09 2009-10-23 08:59:09 What is the simplest means to compare these two objects? R2.9.1 in OSX, Windows, Linux Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-778

[R] Help with complicated regular expression

2009-11-13 Thread Dennis Fisher
tring exists. Any help with regular expressions would be appreciated. Thanks. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com _

[R] Use of apply rather than a loop

2009-12-04 Thread Dennis Fisher
this markedly but I am not facile with them. Any help would be appreciated. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com __ R-help@r-p

[R] R errors when trying to read a file

2009-05-11 Thread Dennis Fisher
le is deleted AFTER the conditional is evaluated but before the readLines command is executed? If so, is there any means to prevent an error condition? Any help will be greatly appreciated. Thanks. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (

[R] length(grep(...

2009-05-19 Thread Dennis Fisher
Colleagues R2.8.1 in OSX I often combine two commands as follows: length(grep(TEXT, OBJECT)) > 0 to see if a particular snippet of text exists within an object. Is there a single command that would accomplish this? Dennis Dennis Fisher MD P < (The "P Less Than" Compa

[R] Finding a folder at the root level of an unknown drive

2009-06-06 Thread Dennis Fisher
i.e., can I execute a command that silently reports only successes? Thanks in advance. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-415-564-2220 www.PLessThan.com __ R-help@r-proje

[R] Confusion regarding environments invoked by "source" command

2009-03-23 Thread Dennis Fisher
also replaced "print(DATAFRAME)" with "print(str(DATAFRAME))" with the same outcome. I assume that this is an error as to how I am managing environments but I cannot figure out a solution. Any help would be appreciated. Dennis Dennis Fis

[R] Reducing the size of a large script top speed onset of execution

2010-01-09 Thread Dennis Fisher
s fast as it could. Does anyone have an explanation for this behavior; also, any ideas as to how to speed the process at the command line would be appreciated. Thanks for any suggestions. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1

Re: [R] Reducing the size of a large script top speed onset of execution

2010-01-09 Thread Dennis Fisher
the correct approach to the problem?). That did not make any obvious difference to the duration to source the script. Do you have an specific suggestions that might speed the process? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-

[R] Failure to produce italics in jpeg

2010-01-23 Thread Dennis Fisher
help pages for either jpeg or bquote that explain this. Any ideas? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com __ R-help@r-project.or

[R] Adding text to existing PDF's created with R

2020-10-07 Thread Dennis Fisher
join the separator pages and the original PDFs using python's join command. But I have not been able to figure out how to add page numbers to the existing PDF's. Any help would be appreciated. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PL

[R] Package recommendations for outputting table with cell formatting

2020-10-23 Thread Dennis Fisher
d work; outputting directly to Word would be even better. I expect that several packages can accomplish this. I am looking for recommendations as to which package (or combination) of packages is best to accomplish this. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax:

Re: [R] Package recommendations for outputting table with cell formatting

2020-10-23 Thread Dennis Fisher
Patrick Doing this in Excel is certainly an option. But I would like to learn how to do it in R. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com > On Oct 23, 2020, at 6:15 PM, Patrick (Malone Quantit

[R] segfault from systemfonts::system_fonts

2020-11-03 Thread Dennis Fisher
other functions in systemfonts without problems -- only system_fonts triggers the segfault. Another similar setup on OS X does not trigger the same problem, so the problem is more likely something in my system rather than a problem in R. Does anyone have any ideas on how one might address this? D

Re: [R] segfault from systemfonts::system_fonts

2020-11-03 Thread Dennis Fisher
Duncan Thanks for responding -- but your response did not help my mood. Executing: .Call("_systemfonts_system_fonts_c") triggered the segfault (as you proposed). Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753-

[R] Adding page numbers to existing PDFs

2022-10-21 Thread Dennis Fisher
Python using reportlab.pdfgen — however, the file size increases prohibitively. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com __ R-help@r-project.org mailing list -- T

Re: [R] Adding page numbers to existing PDFs

2022-10-21 Thread Dennis Fisher
Bert et al. I searched with slightly different text and found various packages that might be relevant: pdftools staplr QPDF However, as far as I can tell, none of these offers the specific functionality that I need. Dennis Dennis Fisher MD P < (The "P L

[R] Printing special characters

2023-01-16 Thread Dennis Fisher
strings, then using plotmath)? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.

[R] VT-100 terminal escape sequences

2023-03-05 Thread Dennis Fisher
[?25h text to disappear. If the problem originates in XOJO, I assume that there is nothing that can be done in R to solve the problem. But, if there is something that can be done in my R code, it would be useful to know about it. Dennis Dennis Fisher MD P < (The "P Less Than&

[R] printing a data.frame without row numbers

2023-03-27 Thread Dennis Fisher
WITHOUT the row numbers: COL1 COL2 1 10 29 38 47 56 Is there any simple way to accomplish this, short of writing my own print method or outputting line-by-line using cat? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866

[R] Identifying presence of Java

2019-11-09 Thread Dennis Fisher
s) but I cannot capture what is displayed on the console. I have also tried “system2” with various TRUE/FALSE permutations without success. Any clever ideas? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessTha

Re: [R] Identifying presence of Java

2019-11-09 Thread Dennis Fisher
is not being displayed. Is there a way to capture that output? If so, I can certainly figure out how to parse it. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com <http://www.plessthan.com/> > O

Re: [R] Identifying presence of Java

2019-11-09 Thread Dennis Fisher
have 13.03.1 installed whereas R is looking for 11.0.1 Any idea how to fix this? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com > On Nov 9, 2019, at 9:35 AM, Dirk Eddelbuettel wrote: > > > Denn

Re: [R] Identifying presence of Java

2019-11-10 Thread Dennis Fisher
their suggestions. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com <http://www.plessthan.com/> > On Nov 10, 2019, at 11:49 AM, Abby Spurdle wrote: > > shell ("Java -version 2>&1&quo

[R] Problem related to multibyte string in CSV file

2019-11-14 Thread Dennis Fisher
is there any simple way to accomplish this? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see ht

[R] need help with plotmath and/or plotting unicode characters

2023-06-08 Thread Dennis Fisher
is solved: mtext(side=3, paste0("N ", UNICODE, " ", XX, ": ", YY)) PLOTMATH: mtext(side=3, bquote(N <= .(XX) ~":" ~ .(YY))) This comes close: N ≤ 2 : 13 but I want to remove the space between the 2 and ":" Dennis Dennis Fisher

[R] Timezone question

2023-08-17 Thread Dennis Fisher
R 4.3.1 OS X Colleagues Is there a simple way to determine the timezone offset for my present location. For example, during standard time in the US, the offset from GMT is 8 hours in California. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessTh

[R] adding "Page X of XX" to PDFs

2023-12-02 Thread Dennis Fisher
-- the original PDF contains a timestamp on each page -- the new version would have a different timestamp -- so I would prefer to not use this approach. Has anyone thought of some terribly clever way to solve this problem? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Ph

[R] Extracting values from Surv function in survival package

2024-05-15 Thread Dennis Fisher
2, SUBDATA[, EXP.STRAT]=2 5 5168 81 NA SUBDATA$ARM=2, SUBDATA[, EXP.STRAT]=3 1 1 22 NA NA it should be easy to get “events”. Any thoughts? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753

[R] Referencing Sys.Date to a different time zone

2024-06-28 Thread Dennis Fisher
automatic, regardless of where in the world I am located. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com <http://www.plessthan.com/> [[alternative H

[R] Did the output from summary(lm(...)) change

2020-01-24 Thread Dennis Fisher
P value from: summary(lm(YVAR ~ XVAR))$coeff but I am curious as to whether my memory is flawed. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com <http://www.plessthan.com/> [[alter

[R] Removing a space from a string

2020-07-28 Thread Dennis Fisher
I would like a general approach to deleting a space, but only if it appears before the period. Any suggestions on a regular expression for this? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.c

Re: [R] Removing a space from a string

2020-07-28 Thread Dennis Fisher
It is possible that there will be > 1 space. But, most likely only one (i.e., a solution for one space will suffice; a solution for > 1 space would be even better) Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753-7784) www.

Re: [R] Removing a space from a string

2020-07-28 Thread Dennis Fisher
Only the spaces in STRING. However, if I inadvertently delete the space between STRING and NN, I can add it back in. Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com <http://www.plessthan.com/> > On Ju

Re: [R] Removing a space from a string

2020-07-28 Thread Dennis Fisher
any idea as to the source. Thanks for your regular expression suggestion. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com <http://www.plessthan.com/> > On Jul 28, 2020, at 5:11 PM, Richard O'K

Re: [R] Removing a space from a string

2020-07-29 Thread Dennis Fisher
it contains no spaces. The offending entity here is textreadr:read_dicx That addresses how the spaces arose. But, my question was not about that — rather I was looking for a general fix when that situation arises. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone

[R] sendmail -- issue with mime_part

2013-08-15 Thread Dennis Fisher
" is appended to SOMENAME. If, for example, I wanted the file to be named SOMENAME.csv, the command -- name="SOMENAME.csv" would yield "SOMENAME.csv.txt". Is there some means to prevent addition of the .txt extension? Any help would be appreciated. Dennis Dennis Fish

[R] Accessing standard errors for coefficients in nlme

2013-08-31 Thread Dennis Fisher
provides only the "Value" column. I also tried: str(summary(lme(…))) to see if it provided any insights (none, unfortunately). How can I access those values? Any help would be greatly appreciated. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-8

[R] Unexpected behavior with abbreviation of an argument to paste

2013-01-27 Thread Dennis Fisher
e, the "ignore.case" argument for grep can be abbreviated to "ig" (shortening it to a single character creates an ambiguity). Is there something special about "collapse" that I am missing? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone:

[R] Displaying "<=" in axis values

2014-04-15 Thread Dennis Fisher
? Thanks. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/

[R] Encoding issue

2014-01-06 Thread Dennis Fisher
e of the string, R does not appear to detect it consistently. Perhaps I am not escaping things correctly or perhaps my understanding of this encoding is flawed. Can anyone provide some useful pointers here? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLess

[R] Handling large SAS file in R

2014-01-28 Thread Dennis Fisher
ile was sent to me. > > Let me know what you guys think > KR > Hans Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com [[alternative HTML version deleted]] __

[R] Capturing output of a C executable

2014-02-02 Thread Dennis Fisher
which I then read into R. However, it would be better if I did not need to modify the C code. Does anyone have any ideas of how I can capture this output within R? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1

[R] Getting rid of spaces in plot math

2014-03-31 Thread Dennis Fisher
R 3.0.2 OS X Colleagues I am trying to label a graphic: Cortisol (µg/ml) A simplified version of the code is: plot(1) ; mtext(bquote("Cortisol ("~mu~"g/ml)")) This code inserts spaces around the mu: Cortisol ( µ g/ml) How can I suppress those spac

[R] Cannot read XPT file using foreign package

2013-10-04 Thread Dennis Fisher
he file to another format. However, I would like to understand why the foreign package is unable to process the file. Any help would be greatly appreciated. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-

Re: [R] Cannot read XPT file using foreign package

2013-10-04 Thread Dennis Fisher
file with read.xport and it failed. Could there be an issue with the version of SAS (which appears to be 6.06) -- they are now up to version 9 (for Windows - I don't know the version # for UNIX). Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan

[R] Transposing the output of 'table'

2013-10-06 Thread Dennis Fisher
ric(TABLE)) However, I bet that a more clever approach exists? Any takers? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com __ R-he

[R] Inserting an image into a PDF file

2010-07-11 Thread Dennis Fisher
accomplish this? (OS X, R 2.11.1) Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com __ R-help@r-project.org mailing list https:/

[R] Registered / trademark signs

2010-07-20 Thread Dennis Fisher
works in both OS X and Windows (≥ XP) and with R versions ≥ 2.11 Thanks in advance. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com __

[R] Formatting of time strings

2010-09-10 Thread Dennis Fisher
. Any help would be appreciated. Thanks. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com __ R-help@r-project.org mailing list https:/

[R] grep triggering error on unicode character

2010-10-11 Thread Dennis Fisher
first problem, i.e., identifying a line containing XXX. If I can do so, I can remove the offending lines before I execute the tolower command. However, I am stumped as to how to resolve either problem. Any help would be appreciated. Thanks. Dennis Dennis Fisher MD P < (The "P Less Th

[R] Submissions that include an entire previous digest

2010-12-12 Thread Dennis Fisher
contain both "Subject: R-help Digest, Vol XX, Issue YY" and "End of R-help Digest, Vol XX, Issue YY") to prevent this problem? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLe

[R] Rank ANCOVA

2010-07-27 Thread Dennis Fisher
comparable function for R? Thanks in advance. Not that it matters in this situation but the platform is OS X; R version is 2.11. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-

[R] Adding lines to two graphs alternately

2010-07-28 Thread Dennis Fisher
other words, I am trying to add to both two panels in an alternating manner -- do some calculations, add a line to panel 1, then add a line to panel 2, then do more calculations. Is this possible? Dennis (OS X, R 2.11) Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866

[R] Constructing arguments for plotmath

2010-08-01 Thread Dennis Fisher
, I tried "expression" instead of bquote but I was not able to get the registered sign ('\u00ae') to appear as a superscript. Any help would be appreciated. Dennis (R 2.11; OS X [platform should not be an issue here]) Dennis Fisher MD P < (The "

[R] Unable to retrieve residual sum of squares from nls output

2010-08-13 Thread Dennis Fisher
: language nls(formula = NEWY ~ PMESOR + PAMPLITUDE * cos(2 * > pi * (NEWX - POFFSET)/PERIOD), start = list(PMESOR = MESOR, PAMPLITUDE = > AMPLITUDE, ... > $ dataClasses: Named chr "numeric" > ..- attr(*, "names")= chr "NEWX" > $ control

[R] Type 3 sum of squares

2010-08-16 Thread Dennis Fisher
that the coding of nesting in the formula is correct: DATA$SEQ %in% DATA$ID Any advice on this would be appreciated. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.

[R] Applying "toupper" to only portions of text strings

2011-05-26 Thread Dennis Fisher
t together. But, I hope that there is a simpler means to accomplish this. Thanks in advance. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com

[R] Unexpected call to "require"

2010-05-05 Thread Dennis Fisher
(e.g., require("chron")) in a new session of R, I don't receive the messages shown above. But, the script does return that message. Does anyone recognize this specific message, i.e., what is triggering the messages? Thanks in advance. Dennis Dennis Fisher MD P < (The &quo

[R] Reading JPEG file, converting to HEX

2010-05-16 Thread Dennis Fisher
roach should be used to read the file. I found the command read.jpeg (in rimage; of note, I needed to use the Windows version because the OSX version appears to be broken). However, this command creates an "imagematrix", which does not appear to be what I need. Any th

[R] Environment variable PATH in Windows

2011-03-04 Thread Dennis Fisher
rofile. What are the corresponding sources in Windows? Thanks in advance. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com __ R-help

[R] Unexpected behavior of windows() command followed by print(LATTICEPLOT)

2011-03-22 Thread Dennis Fisher
3 no graphics window I assume that the problem relates to printing options for lattice objects. Can someone direct me to how to solve this? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessT

[R] Finding the common portion of strings

2011-03-25 Thread Dennis Fisher
MMON" and the position varies. But, I don't know what that "SOMETHINGCOMMON" is. Is there an efficient means to find the common string of characters between all of the objects? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (

[R] Probing a function

2011-03-28 Thread Dennis Fisher
: function (...) UseMethod("readWindowsShortcut") providing no insight to me as to the commands in the function. So, how do I (or, can I) access the code in that function? Thanks in advance Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone:

[R] Adding text to page margin with lattice graphics

2011-04-07 Thread Dennis Fisher
i.e., page is a function of itself? Any help in interpreting the function would be appreciated. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com

[R] Adding margin text to lattice graphics

2011-04-09 Thread Dennis Fisher
fferent command that accomplishes my goal? Or a different implementation of this same command? Any help would be greatly appreciated. Also, because of my naivete with lattice graphics, I may be asking the question in entirely the wrong way -- please feel free to redirect me. Dennis Dennis Fisher

[R] Reading XML files masquerading as XL files

2011-08-10 Thread Dennis Fisher
e force approach. Are there any packages that would allow me to read these files without the additional steps? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com

[R] Setting Windows environment variables via a batch file

2011-08-23 Thread Dennis Fisher
fferent in Windows 7 so I would appreciate answers relevant to Vista). Does anybody have any insights? Thanks in advance. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com

[R] Removing a single element from an array

2011-09-18 Thread Dennis Fisher
les. I can accomplish this with a second command: LIST<- LIST[LIST != "filename.to.be.excluded"] This is cumbersome -- is there some more efficient code to accomplish this? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessTha

[R] UNIX diff function

2011-07-13 Thread Dennis Fisher
is board has thought of a more clever approach to this (or perhaps some function already exists). Any help would be appreciated. Thanks. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-75

[R] Formatting numbers for display

2012-08-02 Thread Dennis Fisher
using sprint. For the "dput"-ers, use the following as potential input: VALUES <- c(123456789, 12345678, 1234567.9, 123456.89, 12345.789, 1234.6789, 123.56789, 12.456789, 1.3456789, 0.123456789, 0.0123456789, 0.00123456789) Thanks for any thoughts. Dennis Dennis Fisher MD P < (The

[R] Impact of cex changing as a function of mfrow

2012-09-02 Thread Dennis Fisher
nyone have a suggestion for how to overcome this (other than using brute force). Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com # In a layout with exactly two rows and columns

Re: [R] Impact of cex changing as a function of mfrow

2012-09-02 Thread Dennis Fisher
and error. I was hoping that invoking some other option in mtext, such as padj, would accomplish my goal of needing only to multiply the line= value by the value returned from my function. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-8

  1   2   >