Re: [R] Selecting distinct values from a column

2004-11-19 Thread Marc Schwartz
On Fri, 2004-11-19 at 19:01 +, Ann Huxtable wrote: > Hello, > > Is there an easy way (other than the obvious for loop?) to select distinct > values from a column vector? > > Many thanks > > Ann Presuming that by 'distinct' you mean 'unique', see ?unique > MyVec <- rep(1:5, times = c(1:5)

[R] Selecting distinct values from a column

2004-11-19 Thread Ann Huxtable
Hello, Is there an easy way (other than the obvious for loop?) to select distinct values from a column vector? Many thanks Ann __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-