[R] combine all data frame columns into a vector.

2013-08-12 Thread Khan, Sohail
Dear All, Could anyone suggest a quick way to combine all columns in a data frame into a vector? For example, I have a data frame of 205 columns with character data types, many data values are repeated in all the columns. Actually, I would like to retrieve all the unique values from this data

Re: [R] combine all data frame columns into a vector.

2013-08-12 Thread Khan, Sohail
Thanks Bert, All are character values. -Sohail -Original Message- From: Bert Gunter [mailto:gunter.ber...@gene.com] Sent: Monday, August 12, 2013 4:35 PM To: Khan, Sohail Cc: greatest.possible.newbie; r-help@r-project.org Subject: Re: [R] combine all data frame columns into a vector

Re: [R] combine all data frame columns into a vector.

2013-08-12 Thread Khan, Sohail
Thanks Arun and Bert. Both options work. -Sohail -Original Message- From: arun [mailto:smartpink...@yahoo.com] Sent: Monday, August 12, 2013 4:51 PM To: Khan, Sohail Cc: R help Subject: Re: [R] combine all data frame columns into a vector. Hi, May be this help: dat1<- structure(l

Re: [R] How to transpose it in a fast way?

2013-03-08 Thread Khan, Sohail
Perhaps you could process this with a unix/Linux utility "Awk", before reading the file into R. -Sohail From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf Of peter dalgaard [pda...@gmail.com] Sent: Friday, March 08, 2013 5:08 AM T

[R] Calculateing means

2012-11-16 Thread Khan, Sohail
Dear List, I have a data matrix with 570 columns containing 95 (samples) with 6 replicates each. How can I calculate the mean of the replicates for 95 samples? Thank you. The information contained in this electronic e-mail transmission and any attachments are intended only for the use of the

Re: [R] Calculateing means

2012-11-16 Thread Khan, Sohail
means for x1-x3, x4-x6, x7-x9 For each row. -Sohail -Original Message- From: John Kane [mailto:jrkrid...@inbox.com] Sent: Friday, November 16, 2012 4:35 PM To: Khan, Sohail; 'r-help@r-project.org' Subject: RE: [R] Calculateing means ?aggregate will do it. x <- data.frame(