gmGeostats (version 0.10-6)

[.logratioVariogramAnisotropy: Subsetting of logratioVariogram objects

Description

Subsetting of logratioVariogram objects

Usage

# S3 method for logratioVariogramAnisotropy
[(x, i = NULL, j = NULL, ...)

Arguments

x

an object of class "logratioVariogram" or c("logratioVariogramAnisotropy", "logratioVariogram")

i

index or indexes of lags to be kept (if positive) or removed (if negative)

j

index or indexes of directions to be kept, only for objects of class c("logratioVariogramAnisotropy", "logratioVariogram")

...

extra arguments, ignored

Value

the selected variograms or lags, potentially of class "logratioVariogram" if only one direction is chosen

Examples

Run this code
# NOT RUN {
data("jura", package="gstat")
X = jura.pred[,1:2]
Zc = compositions::acomp(jura.pred[,7:9])
vg = logratioVariogram(data=Zc, loc=X)
vg[1]
vg = logratioVariogram(data=Zc, loc=X, azimuth=c(0,90))
vg[,1]
vg[1,1]
vg[1,]
# }

Run the code above in your browser using DataLab