Learn R Programming

sits (version 1.12.0)

sits_from_zoo: Import time series in the zoo format to a sits tibble

Description

Converts data from an instance of a zoo series to a sits tibble.

Usage

sits_from_zoo(ts.zoo, longitude = 0, latitude = 0, label = "NoClass",
  name = "unknown")

Arguments

ts.zoo

Zoo time series.

longitude

Longitude of the chosen location.

latitude

Latitude of the chosen location.

label

Label to attach to the time series (optional).

name

Name of the coverage where data comes from.

Value

Time series in sits tibble format.

Examples

Run this code
# NOT RUN {
# Read a time series in ZOO format
data(ts_zoo)
# Convert the zoo series into a sits tibble
data.tb <- sits_from_zoo (ts_zoo, longitude = -54.2313, latitude = -14.0482,
           label = "Cerrado", name = "mod13q1")
# }

Run the code above in your browser using DataLab