dim {vegsoup} | R Documentation |
Get the number of rows, columns, or cells of the species matrix contained in a Vegsoup* object.
## S4 method for signature 'Vegsoup' ncol(x) ## S4 method for signature 'Vegsoup' nrow(x) ## S4 method for signature 'Vegsoup' dim(x) ## S4 method for signature 'Vegsoup' ncell(x) ## S4 method for signature 'Vegsoup' nrow(x) ## not yet implemented, subsample to discard dimension ## ncol(x) <- value ## nrow(x) <- value ## ncell(x) <- value
x |
A |
nrow(x)
allways equals the number of plots. ncol(x)
gives the number of species
including layer duplicates. For species richness see richness
. dim
retrieves the dimension of the species matrix of an object and ncell
the numbder of
cells in the species matrix.
An integer giving number of rows (plots) and species (each occurrence of a species in layer), or the dimension of that matrix, respectively the product of this two-dimensional matrix.
Roland Kaiser
require(vegsoup) data(barmstein) x <- barmstein dim(x) nrow(x) # number of plots ncol(x) # number of (pseudo-)species ncell(x) # number of cells, short hand for prod(dim(dta))