Learn R Programming

sits (version 1.12.0)

sits_values: Return the values of a given sits tibble as a list of matrices according to a specified format.

Description

This function returns only the values of a sits tibble (according a specified format). This function is useful to use packages such as ggplot2, dtwclust, or kohonen that require values that are rowwise or colwise organised.

Usage

sits_values(data.tb, bands = NULL, format = "cases_dates_bands")

Arguments

data.tb

A sits tibble with time series for different bands.

bands

A string with a group of bands whose values are to be extracted. If no bands is informed extract ALL bands.

format

A string with either "cases_dates_bands" or "bands_cases_dates" or "bands_dates_cases".

Value

A sits tibble with values.

Examples

Run this code
# NOT RUN {
# Retrieve a set of time series with 2 classes
data(cerrado_2classes)
# retrieve the values split by bands
sits_values(cerrado_2classes[1:2,], format = "bands_dates_cases")
# }

Run the code above in your browser using DataLab