migrate {RGeostats}R Documentation

Migrate from a Db into another Db

Description

Migrate a variable from an input into an output Db

Usage

migrate(dbin, dbout, names = db.getname(dbin,"z",1), 
             flag.fill=FALSE, flag.inter=FALSE, update.names=NA,
             radix = "Migrate", modify.target = db.locmod())

Arguments

dbin

The db-class where the input variable is read

dbout

The db-class where the migrated results are written

names

List of names of attributes to be processed. For more information see db.ident.

flag.fill

Grid filling option (only valid when migrating to Grid).

  • FALSE Points are assigned to the grid nodes (some grid nodes may be left empty)

  • TRUE All grid nodes will be valuated with the closest point value

flag.inter

Grid interpolation option (only valid when migrating from Grid to Point).

  • When TRUE, the result is the multilinear interpolated value from the grid.

  • When FALSE, the result is the value of the closest grid node.

update.names

When 'update.names' are provided (in the output db-class) and if their count is equal to the 'names' (in the input db-class), then the resulting variables are PATCHED in 'update.names' (instead of being added).

radix

Radix of the name given to the output variable

modify.target

Decides whether or not the newly created variables will have their locator defined or not. For more information, see db.locmod.

Value

The output Db where the calculated variable has been added or updated.


[Package RGeostats version 11.2.2 Index]