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

sits_from_zoo {sits} | R Documentation

## 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 data cube where data comes from.

### Value

Time series in sits tibble format.

### Author(s)

Gilberto Camara, gilberto.camara@inpe.br

### Examples

    # Read a time series in ZOO format
    data(ts_zoo)
    # Convert the zoo series into a sits tibble
    data <- sits_from_zoo(ts_zoo,
        longitude = -54.2313, latitude = -14.0482,
        label = "Cerrado", name = "mod13q1"
    )

[Package sits version 0.14.1 Index]