layer-names-methods | R Documentation |
Methods for returning the names of the layers in a Field, Comparison or data.able. Note, for changing the names of layers see renameLayers
.
## 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)
x |
A Field or Comparison. |
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.
A vector of character strings of the names of the layers
Matthew Forrest matthew.forrest@senckenberg.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.