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] combine all data frame columns into a vector.

2013-08-12 Thread arun
", "f", "a", "z", "q", "i", "o", "v", "a", "s"),     V9 = c("n", "d", "n", "f", "j", "j", "g", "w", "k", "v&quo

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 Bert Gunter
Sohail: 1. Are they character or factor? 2. ?unlist > unique(unlist(yourframe)) -- Bert On Mon, Aug 12, 2013 at 1:23 PM, Khan, Sohail wrote: > 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 colum

[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