Sohail:

1. Are they character or factor?

2. ?unlist
> unique(unlist(yourframe))

-- Bert

On Mon, Aug 12, 2013 at 1:23 PM, Khan, Sohail <skha...@nshs.edu> 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 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 set.  My strategy is to put all 
> column value into a vector and then select unique from that vector.
>
> I would appreciate a more efficient method.
> Thanks.
> -Sohail
>
>
> The information contained in this electronic e-mail transmission and any 
> attachments are intended only for the use of the individual or entity to whom 
> or to which it is addressed, and may contain information that is privileged, 
> confidential and exempt from disclosure under applicable law. If the reader 
> of this communication is not the intended recipient, or the employee or agent 
> responsible for delivering this communication to the intended recipient, you 
> are hereby notified that any dissemination, distribution, copying or 
> disclosure of this communication and any attachment is strictly prohibited. 
> If you have received this transmission in error, please notify the sender 
> immediately by telephone and electronic mail, and delete the original 
> communication and any attachment from any computer, server or other 
> electronic recording or storage device or medium. Receipt by anyone other 
> than the intended recipient is not a waiver of any attorney-client, 
> physician-patient or other pr!
 iv!
>  ilege.
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



-- 

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to