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
", "f", "a", "z", "q", "i", "o", "v", "a", "s"),
V9 = c("n", "d", "n", "f", "j", "j", "g", "w", "k", "v&quo
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
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
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
5 matches
Mail list logo