[R] Select 5 identical numbers
gunter.berton at gene.com
Mon Jan 20 19:52:26 CET 2014
But just noting the usual floating point stuff, Jim's approach might
run into problems depending on what you have as "numbers" and what is
meant by "identical."
Genentech Nonclinical Biostatistics
"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
H. Gilbert Welch
On Mon, Jan 20, 2014 at 9:48 AM, jim holtman <jholtman at gmail.com> wrote:
> Use 'table' to count the occurances and then select the one that has a
> count of 5.
> Jim Holtman
> Data Munger Guru
> What is the problem that you are trying to solve?
> Tell me what you want to do, not how you want to do it.
> On Mon, Jan 20, 2014 at 12:07 PM, Alaios <alaios at yahoo.com> wrote:
>> Dear all,
>> I would like to select from a vector of 10 elements, 5 of those that are identical.
>> How can I do that in R? I guess one way would be to taking random numbers and see if that appeared again. Is though there a more straightforward approach?
>> [[alternative HTML version deleted]]
>> R-help at r-project.org mailing list
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help