nrow: Return size of object Get stiffness matrix

Description Usage Arguments Examples

Description

Returns the size of the object, where the 'size' is determined by the class of the object being passed. For a GMRF and GMRF_basis, this is the number of variables of the associated MRF, for an FEBasis this is the number of vertices in the mesh, and for an Obs this is the number of observations.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
nrow(x)

## S4 method for signature 'GMRF'
nrow(x)

## S4 method for signature 'GMRF_basis'
nrow(x)

## S4 method for signature 'FEBasis'
nrow(x)

## S4 method for signature 'Obs'
nrow(x)

Arguments

x

an MVST object

Examples

1
2
3
data(icesat)
icesat_obs <- Obs(df=icesat)
nrow(icesat_obs)

shazhe/mvst0 documentation built on May 29, 2019, 9:20 p.m.