spatialGridAcomp: Construct a regionalized composition / reorder compositional...

View source: R/grids.R

spatialGridAcompR Documentation

Construct a regionalized composition / reorder compositional simulations

Description

Connect some coordinates to a composition (of hard data, of predictions or of simulations); currently, the coordinates are stored in an attribute and the dataset is given a complex S3 class. This functionality will change in the future, to make use of package "sp" classes.

Usage

spatialGridAcomp(coords, compo, dimcomp = 2, dimsim = NA)

Arguments

coords

coordinates of the locations

compo

(observed or predicted) compositional data set; or else array of simulated compositions

dimcomp

which of the dimensions of compo does correspond to the parts of the compositon?

dimsim

if compo contains simulations, which of its dimensions does run across the realisations? leave it as NA if compo has observations or predictions.

Value

A (potentially transposed/aperm-ed) matrix of class c("spatialGridAcomp","acomp") with the coordinates in an extra attribute "coords".

See Also

image_cokriged.spatialGridAcomp() for an example; gsi.gstatCokriging2compo() to restructure the output from gstat::predict.gstat() confortably


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