Displaying 1 result from an estimated 1 matches for "tp1570700p1578549".
2010 Feb 26
7
counting the number of ones in a vector
Dear R users,
I want to count the number of ones in a vector x.
That's what I did : length( x[x==1] )
Is that a good solution ?
Thank you very much,
Randall
[[alternative HTML version deleted]]