Hi R users I want to make a table of frequencies to show how many times the numbers form 0 to 10 appear in a vector. For example, if the vector is:
> x [1] 5 10 3 5 10 10 3 6 10 1 10 3 7 1 10 3 6 9 3 3 In this case I want a table that will show that the zero has frequency 0, the one has frequency 2, the three has a frequency of 6.... and so on. Notice that it has to show me that the 2, the 4, the 8 have a frequency of zero. The "table" function doesn't show me this. > table(x) x 1 3 5 6 7 9 10 2 6 2 2 1 1 6 Thank you so much! [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.