[R] How to get the remaining vector after sampling a subset?

From: Xiao Shi <bioconductor.cn_at_gmail.com>
Date: Sun 09 Oct 2005 - 19:26:55 EST


Hi ,
I have a vector,for example,
x=rnorm(100)
Then i rendom choose 20 of them.
chosen=sample(x,20).
And i want to get the remain values in x. Is there a quick way to go?

Thanks in advance.

        [[alternative HTML version deleted]]



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 Received on Sun Oct 09 19:33:16 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:40 EST