getNames: getNames

getNamesR Documentation

getNames

Description

Retrieves park names from an NPSForVeg object of a list of such objects.

Usage

getNames(object, name.class = "short")

Arguments

object

Either an NPSForVeg object or a list of such objects

name.class

Type of name to return. One of three options, in quotes.

"short"

The default. Returnes the short name of the park

"long"

Returns the long, format name of the park

"code"

Returns the park code

Value

A character vector with one or more park names.

Examples

## Not run: 

ncrn <- importNCRN("C:/Data")

# full park names
getNames(ncrn, name.class = "long")

# park codes
getNames(ncrn, name.class = "code")

## End(Not run)


NCRN/NPSForVeg documentation built on Nov. 30, 2024, 7:32 a.m.