vNames: Names of columns of a GRASS vector's attribute table

.vNamesR Documentation

Names of columns of a GRASS vector's attribute table

Description

This function returns the column names of a GRASS vector's attribute table.

Usage

.vNames(x)

Arguments

x

A GVector or the name of a vector in GRASS.

Value

Character vector.

Examples

if (grassStarted()) {

madRivers <- fastData("madRivers")
rivers <- fast(madRivers)

.vCats(rivers)
.vHasDatabase(rivers)
.vAsDataTable(rivers)
.vRecat(rivers) # dangerous--re-categorizes geometries!
.vValidCats(rivers)

.vDetachDatabase(rivers) # dangerous--detaches database!
.vAttachDatabase(rivers)

# Ensure we don't use this for other examples!
.rm(rivers) # delete in GRASS
rm(rivers) # delete in R

}

adamlilith/fasterRaster documentation built on Oct. 26, 2024, 4:06 p.m.