[R] unique/subset problem

From: lalitha viswanath <lalithaviswanath_at_yahoo.com>
Date: Thu 25 Jan 2007 - 17:53:58 GMT

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

names(dataset) =
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.


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

R-help@stat.math.ethz.ch 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. Received on Fri Jan 26 05:04:46 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 25 Jan 2007 - 19:31:48 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.