merge | R Documentation |
merge attributes into a dimension, or split a dimension over attributes
## S3 method for class 'stars'
split(x, f = length(dim(x)), drop = TRUE, ...)
## S3 method for class 'stars'
merge(x, y, ..., name = "attributes")
x |
object of class |
f |
the name or index of the dimension to split; by default the last dimension |
drop |
ignored |
... |
if defined, the first unnamed argument is used for dimension values, if not defined, attribute names are used for dimension values |
y |
needs to be missing |
name |
name for the new dimension |
split.stars works on the first attribute, and will give an error when more than one attribute is present
merge merges attributes of a stars object into a new dimension; split splits a dimension over attributes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.