nobs.Rd
nobs
is a generic function to return the number of
observations from a model. shuffle
provides a few methods for
other types of data object in R.
# S3 method for class 'numeric'
nobs(object, ...)
# S3 method for class 'integer'
nobs(object, ...)
# S3 method for class 'matrix'
nobs(object, ...)
# S3 method for class 'data.frame'
nobs(object, ...)
# S3 method for class 'character'
nobs(object, ...)
# S3 method for class 'factor'
nobs(object, ...)
Function nobs
is a simple generic function to return the
number of observations in a range of R model objects. Methods are
provided to work with a variety of R objects.
The (numeric) number of observations in object
.