stats::nobs() is a generic function that returns the number of
observations from a model. permute provides methods for several other types
of R object.
Usage
# 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, ...)