nrow_ml computes the number rows in the data as well as the number of
groups in the data. This corresponds to the within-group sample size and
between-group sample size (ignoring any missing data). This is simply a
combination of nrow + ngrp.
Usage
nrow_ml(data, grp.nm)
Value
list with two elements providing the sample sizes (ignoring missing
data). The first element is named "within" and contains the number of rows
in the data. The second element is named "between" and contains the number
of groups in the data.
Arguments
data
data.frame of data.
grp.nm
character vector of colnames from data specifying the
grouping variables.