names: Layer name methods

layer-names-methodsR Documentation

Layer name methods

Description

Methods for returning the names of the layers in a Field, Comparison or data.able. Note, for changing the names of layers see renameLayers.

Usage

## S4 method for signature 'Field'
names(x)

## S4 method for signature 'Comparison'
names(x)

layers(x)

## S4 method for signature 'Field'
layers(x)

## S4 method for signature 'Comparison'
layers(x)

## S4 method for signature 'data.table'
layers(x)

Arguments

x

A Field or Comparison.

Details

For convenience both names() and layers() are defined, but they both give the same result. There is a logical equivalency here since layer names in a field are actually the column names in underlying data.table. As such, layers() is more consistent with the terminology and framework of DGVMTools, whereas names() is more consistent with the data.table approach. But, in the end, both of these functions return exactly the same thing via exactly the same method.

Value

A vector of character strings of the names of the layers

Author(s)

Matthew Forrest matthew.forrest@senckenberg.de


MagicForrest/DGVMTools documentation built on Aug. 23, 2024, 8:05 a.m.