search for: 05d1aa33

Displaying 1 result from an estimated 1 matches for "05d1aa33".

2011 Jul 31
4
How to count numbers of a vector and use them as index values?
Dear R folks, I am sorry to ask this simple question, but my search for the right way/command was unsuccessful. I have a vector > x <- c(2, 2, 3, 3, 4, 6) Now the values of x should be considered the index of another vector with possible greater length, say 8, and the value should be how often the indexes appeared in the original vector x. > length(result) [1] 8 > result [1] 0