[R] unique/subset problem

lalitha viswanath lalithaviswanath at yahoo.com
Thu Jan 25 18:53:58 CET 2007


Hi
I am new to R programming and am using subset to
extract part of a data as follows

names(dataset) =
c("genome1","genome2","dist","score");
prunedrelatives <- subset(dataset, score < -5);

However when I use unique to find the number of unique
genomes now present in prunedrelatives I get results
identical to calling unique(dataset$genome1) although
subset has eliminated many genomes and records.

I would greatly appreciate your input about using
"unique" correctly  in this regard.

Thanks
Lalitha


 
____________________________________________________________________________________
TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.



More information about the R-help mailing list