lsp_restructure: Changes structure of the lsp object

Description Usage Arguments Value Examples

View source: R/lsp_restructure.R

Description

Converts a list-column with signatures into many numeric columns

Usage

1

Arguments

x
  • an lsp object

Value

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

Examples

1
2
3
4
5
6
7
8
9
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)

motif documentation built on June 4, 2021, 1:08 a.m.