powered by
n_
N_
n_() generates the current observation number per specified group. It is regarded as grouped serial numbers.
n_()
N_() generates total number of observation per group. It is regarded as grouped total number.
N_()
n_(data, ...)N_(data, ...)
N_(data, ...)
data.farme
variables for grouping
data.frame
If no variable is set in ..., all variables in the datset is used for grouping.
...
# NOT RUN { x <- n_(iris, Species) # } # NOT RUN { x codebook(x) x <- N_(iris, Species) x codebook(x) # } # NOT RUN { # }
Run the code above in your browser using DataLab