Description Usage Arguments Value Examples
View source: R/layer_to_vector.R
Extracts the values of a single layer in a stars
object to a vector. Cell values are ordered from top-left corner to the right.
1 | layer_to_vector(x, check = TRUE)
|
x |
A raster (class |
check |
Whether to check (and fix if necessary) that input has one attribute, one layer and x-y as dimensions 1-2 (default is |
A vector with cell values, ordered by rows, starting from the top left corner (north-west) and to the right.
1 2 3 | data(dem)
v = layer_to_vector(dem)
v
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.