db.delete {RGeoS}R Documentation

Deletes a vector in a Data Base

Description

Delete the selected vector in the db-class.

Usage

db.delete(db, names=NA, ngrep=NA)

Arguments

db

Name of the db-class where a vector must be deleted

names

Name(s) of the attribute to be deleted

ngrep

Generic name for the attributes to be deleted. If defined, it overwrites the 'names' argument

Details

Note that deleting a coordinate variable may result in an inconsistent Db. This should be avoided

Value

The db-class where the selected field has been deleted.

See Also

db-class,

Examples

data(Example_data.db) # Load the Documentation Points Db
Example_data.db # Print a short contents of the Db
Example_data.db <- db.delete(Example_data.db,4) # Delete the 4-th field
Example_data.db # Check that the field called 'First Point Variable' has disappeared

# Clean up
rm(Example_data.db)

[Package RGeoS version 9.1.1 Index]