db.getcols {RGeostats} | R Documentation |
Returns the ranks of the columns corresponding to a given locator and a given rank (optional)
db.getcols(db, loctype = "x", rank.match=NA)
db |
The |
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 |
Returns the list of attribute ranks where the variable corresponds to the target locator and the target rank (if defined).
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)