dim: Number or Rows, Columns, and Cells

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Get the number of rows, columns, or cells of the species matrix contained in a Vegsoup* object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## 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

Arguments

x

A Vegsoup* object.

Details

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.

Value

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.

Author(s)

Roland Kaiser

See Also

Vegsoup, richness

Examples

1
2
3
4
5
6
7
8
9
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))

vegsoup documentation built on Feb. 24, 2021, 3 a.m.