View source: R/lsp_restructure.R
lsp_restructure | R Documentation |
Converts a list-column with signatures into many numeric columns
lsp_restructure(x)
x |
|
Object of class lsp
.
It has several columns: (1) id
- an id of each window.
For irregular windows, it is the values provided in the window
argument,
(2) na_prop
- share (0-1) of NA
cells for each window,
(3) one or more columns representing values of the signature
library(stars)
landcover = read_stars(system.file("raster/landcover2015s.tif", package = "motif"))
landcover_cove = lsp_signature(landcover, type = "cove", threshold = 0.9, window = 100)
landcover_cover = lsp_restructure(landcover_cove)
landcover_cover
lsp_add_sf(landcover_cover)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.