length.gmCgram: Length, and number of columns or rows

View source: R/variograms.R

length.gmCgramR Documentation

Length, and number of columns or rows

Description

Provide number of structures, and nr of variables of an LMC of class gmCgram

Usage

## S3 method for class 'gmCgram'
length(x)

Arguments

x

gmCgram object

Value

length returns the number of structures (nugget not counted), while ncol and nrow return these values for the nugget (assuming that they will be also valid for the sill).

See Also

Other gmCgram functions: [.gmCgram(), [[.gmCgram(), as.function.gmCgram(), as.gmCgram.variogramModelList(), ndirections(), plot.gmCgram(), variogramModelPlot()

Examples

utils::data("variogramModels")
v1 = setCgram(type=vg.Gau, sill=diag(3)+0.5, anisRanges = 2*diag(c(3,0.5)))
v2 = setCgram(type=vg.Exp, sill=0.3*diag(3), anisRanges = 0.5*diag(2))
vm = v1+v2
length(vm)
ncol(vm)
nrow(vm)

gmGeostats documentation built on April 18, 2023, 5:08 p.m.