[R] Recursive concatenation

2007-09-04 Thread Dennis Fisher
Colleagues, I want to create the following array: A1, A2, A3, B1, B2, B3, C1, C2, C3 I recall that there is a trick using c or paste permitting me to form all combinations of c(A, B, C) and 1:3. But, I can't recall the trick. Dennis Dennis Fisher MD P (The P Less Than Company

[R] Sourcing commands but delaying their execution

2007-08-03 Thread Dennis Fisher
MORE COMMANDS COMMAND TO EXECUTE THE WITHHELD COMMANDS Does R offer some option to accomplish 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] Tabs in PDF documents

2007-07-30 Thread Dennis Fisher
Colleagues, I am using R 2.5.1 on an Intel Mac (OS 10) to create PDF outputs using pdf(); same problem exists in Linux (RedHat 9) While adding text to the document with text() and mtext(), I encounter the following problem: In order to align the text, I have embedded tabs (\t) in some of

[R] Embedded carriage returns in text document

2006-11-13 Thread Dennis Fisher
skip=1 (or a larger N) does not appear to bypass the problem. I can solve the problem by manually deleting these carriage returns either in the original Excel file or the .txt version. However, this is not an ideal solution. Does anyone have a work-around within R? Dennis Dennis Fisher

[R] Filling in a series

2006-10-21 Thread Dennis Fisher
, again with a loop. But, I expect that R allows some more clever approach to the problem. Any thoughts? 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 [[alternative HTML version deleted

[R] Formatting numbers for printing

2006-06-08 Thread Dennis Fisher
or sprintf. Unfortunately, the help pages don't provide sufficient insight. I would appreciate any tricks to accomplish 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 [[alternative HTML version

[R] transparent background for PDF

2006-03-24 Thread Dennis Fisher
, : invalid PDF version I also attempted to address this with par(bg=transparent) without success. Does anybody have any ideas? 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 [[alternative HTML

[R] tiff graphics

2005-12-04 Thread Dennis Fisher
to create TIFF documents (or some other format [excluding EPS] that will not lose resolution when inserted into Word) directly in R (i.e., so as to avoid the conversion outside of R)? Dennis Dennis Fisher MD P (The P Less Than Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-415-564-2220

[R] Use of axis() in conjunction with plot(..., axes=F)

2005-11-28 Thread Dennis Fisher
that this can be overcome by using the at option within axes(). However, I cannot figure out how to use the at option when the axis is a factor. Thoughts? 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] Subsetting a list

2005-10-18 Thread Dennis Fisher
: attempt to select more than one element How can I accomplish delete one or more elements from this list? I am running R2.2.0 on a Linux platform. 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] Converting a matrix to a dataframe: how to prevent conversion to factor

2005-09-08 Thread Dennis Fisher
, it is not obvious to me how to implement I(x). Can anyone advise? Thanks in advance. Dennis Fisher 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 [[alternative HTML version deleted

[R] R/S-Plus/SAS yield different results for Kendall-tau and Spearman nonparametric regression

2005-08-12 Thread Dennis Fisher
) -- SAS Spearman: Rho: -0.22472 P:0.2802 Kendall: Rho: -0.17052 P: 0.2899 Each of the programs yields some differences, possibly because of how ties are handled (R warns about this). Can anyone enlighten me? Dennis Fisher Dennis Fisher MD P (The P Less Than Company

[R] %03d in the pdf command

2005-07-23 Thread Dennis Fisher
? 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 [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo

[R] Question regarding subsetting

2005-07-22 Thread Dennis Fisher
, ccc from B? Thanks in advance. 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 [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https

[R] Importing SAS transport data

2005-04-06 Thread Dennis Fisher
the problem relates to the export characteristics of different versions of SAS. If so, it appears that read.xport may not work with newer versions of SAS. If so, is there a new function to read SAS transport files? Thanks for any possible help. Dennis Fisher MD P (The P Less Than Company

[R] Question about time series

2005-01-17 Thread Dennis Fisher
that R is sufficiently clever that a much simpler approach exists, e.g., can I calculate the number of days since some fixed time? Unfortunately, the man pages and FAQ did not lead me to an obvious solution. Any help appreciated. Dennis Dennis Fisher MD P (The P Less Than Company) Phone: 1

[R] Manipulating text

2003-08-14 Thread Dennis Fisher
In labeling axes, I want to combine symbols and text/superscripts. Examples include: m2 (m, followed by a superscripted 2) µg (micrograms) How can I accomplish this in R? Dennis Fisher MD P (The P Less Than Company) Phone: 1-866-PLessThan (1-866-753-8864) Fax: 1-415-564-2220 www.PLessThan.com