Learn R Programming

openSTARS (version 1.2.3)

grass_v.to.db: Update attribute table.

Description

Wrapper for v.to.db to catch errors arising in some GRASS versions

Usage

grass_v.to.db(map, option, type = "line", columns, format)

Arguments

map

character; name of the map where values should be uploaded.

option

character; what values should be uploaded

type

character; feature type (default = "line")

columns

character; name of the column top upload data to

format

character; data format of the new columns (if it must be created)

Value

Nothing. Uses v.to.db to populate attribute values from vector features.

Details

Since different versions of GRASS handle v.to.db differently (older versions <= 7.4 need the column to exists. while newer ones create the column) different implementations are necessary