[R] Could anyone tell me how to open .RNW file?

2004-08-20 Thread F Duan
Dear R people, I find some of help files under doc directory in R are RNW extensions. Could anyone explain to me what they mean and which program I should use to open them? I tried to open them by Rgui.exe but failed. Currently I use wordpad (or other txt editors) to open them though the

Re: [R] How to import specific column(s) using read.table?

2004-08-10 Thread F Duan
in the list(...). But anyway, it works and saves a lot of memory for me. Thank you again. Frank Quoting Gabor Grothendieck [EMAIL PROTECTED]: Gabor Grothendieck ggrothendieck at myway.com writes: : : F Duan f.duan at yale.edu writes: : : I have a very big tab-delim txt file with header and I

[R] How to import specific column(s) using read.table?

2004-08-09 Thread F Duan
Dear R people, I have a very big tab-delim txt file with header and I only want to import several columns into R. I checked the options for “read.table” and only found “nrows” which lets you specify the maximum number of rows to read in. Although I can use some text editors (e.g., wordpad) to

[R] How to add a common title (or xlab, ylab) for multi-plots in the same window?

2004-08-02 Thread F Duan
Dear R people, I am using par(mfrow=c()) to plot multi-figures in the same window. And I like to put a common title (and xlab, ylab) for all of plots. I have already left some margin by resetting omi values in par() and hided all (xlab, ylab) for each sub-plot. Could anyone tell me how to do

[R] How to put multiple plots in the same window? (not par(mfrow=))

2004-07-30 Thread F Duan
Dear All, I am sorry if this question has been asked before. Below is my Question: I want to put several plots in the same window, but I don’t want the blank space between plots (like par(mfrow=)) --- that makes the plots too small. Could anyone tell me how to do it? Thanks a lot. Frank

Re: [R] How to put multiple plots in the same window? (not par(mfrow=))

2004-07-30 Thread F Duan
Thank all of you. That's exactly what I want. Best, Frank Quoting Gavin Simpson [EMAIL PROTECTED]: F Duan wrote: Dear All, I am sorry if this question has been asked before. Below is my Question: I want to put several plots in the same window, but I don’t want the blank space

[R] How to compare X1 = X2 = ... = Xn?

2004-07-19 Thread F Duan
Dear All, I have a data frame with n columns: X1, X2, ., Xn. Now I want to create a new column: if X1 = X2 = . = Xn, the value is 1; Otherwise, the value is 0. How to do that in a quick way instead of doing (n choose 2) comparisons? Thank you, Frank [[alternative HTML

RE: [R] How to compare X1 = X2 = ... = Xn?

2004-07-19 Thread F Duan
Thanks for all your quick answers. That's exactly what I want. Best, Frank -Original Message- From: Berton Gunter [mailto:[EMAIL PROTECTED] Sent: Monday, July 19, 2004 14:32 To: F Duan; R-Help Subject: Re: [R] How to compare X1 = X2 = ... = Xn? How about: X-as.matrix(yourframe

[R] An image() problem related to Affy package in BioC

2004-07-19 Thread F Duan
Dear All, There is a question I met when using Affy package in Bioconductor. I asked it in BioC and didn't get any responses. Sorry to post again: Could anyone tell me how to draw a deep-blue Affymetrix image through Image() function in Affy package? The default settings of image() draw me

RE: [R] Is there a statistics that can summarize the correlation for more than two random variables?

2004-07-14 Thread F Duan
of the correlations, or not? HTH Peter L. Flom, PhD Assistant Director, Statistics and Data Analysis Core Center for Drug Use and HIV Research National Development and Research Institutes 71 W. 23rd St www.peterflom.com New York, NY 10010 (212) 845-4485 (voice) (917) 438-0894 (fax) F Duan

RE: [R] duplicate row importing issue

2004-07-14 Thread F Duan
How about you delete the first row (column names) and then use header=FALSE in read.table()? Frank -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Herman, David (NIH/NIMH) Sent: Wednesday, July 14, 2004 11:13 To: '[EMAIL PROTECTED]' Subject: [R]

[R] Is there a statistics that can summarize the correlation for more than two random variables?

2004-07-13 Thread F Duan
Hi, R people, I wonder if there is a statistics than can measure the correlation for more than two random variables, instead of computing the correlation coefficient matrix. If so, what R package should I use? Right now I can only think of the mean of all pair-wise correlation

[R] How to check the code for generic function in a specific package?

2004-07-05 Thread F Duan
Hello, R people, I am a R beginner. I searched the R-FAQ and R-help and failed to find the answers. Could anyone tell me how to check (or edit) a generic function within a specific package? If the function is not generic, I can just type the function name at the R prompt or use fix() and