tabulate mengambil bin vektor bernilai bilangan bulat dan menghitung berapa kali setiap bilangan bulat muncul di dalamnya.
tabulate(bin, nbins = max(1, bin, na.rm = TRUE))
| Parameter | Deskripsi |
|---|---|
bin |
a numeric vector (of positive integers), or a factor. Long vectors are supported. |
nbins |
the number of bins to be used. |
# NOT RUN {
tabulate(c(2,3,5))
tabulate(c(2,3,3,5), nbins = 10)
tabulate(c(-2,0,2,3,3,5)) # -2 and 0 are ignored
tabulate(c(-2,0,2,3,3,5), nbins = 3)
tabulate(factor(letters[1:10]))
# }