db.getcols {RGeostats}R Documentation

Returns the ranks of the columns corresponding to a given locator and a given rank (optional)

Description

Returns the ranks of the columns corresponding to a given locator and a given rank (optional)

Usage

db.getcols(db, loctype = "x", rank.match=NA)

Arguments

db

The db-class structure where the columns must be identified

loctype

The type of the locator

rank.match

The rank of the locator index that should be matched (if defined). Otherwise any index will be considered as a valid answer

Value

Returns the list of attribute ranks where the variable corresponds to the target locator and the target rank (if defined).

Examples

data(Z_data.db) # Load the Documentation Points Db
Z_data.db # Print a short contents of the Db
db.getcols(Z_data.db,"z")   # Returns 4,5 
db.getcols(Z_data.db,"z",2) # Returns 5 
db.getcols(Z_data.db,"z",4) # Returns 0 

# Clean up
rm(Z_data.db)

[Package RGeostats version 11.0.6 Index]