Learn R Programming

sits (version 1.12.0)

sits_data_to_csv: Export a sits tibble data to the CSV format

Description

Converts time series data from a sits tibble to a CSV file. The CSV file will not contain the metadata, but will have the actual time series, with a reference value. This function is useful to export the data for external applications

Usage

sits_data_to_csv(data.tb, file)

Arguments

data.tb

A tibble with time series data and metadata.

file

Name of the exported CSV file.

Value

Status of the operation.

Examples

Run this code
# NOT RUN {
# read a tibble with 400 samples of Cerrado and 346 samples of Pasture
data(cerrado_2classes)
# export a time series to zoo
sits_data_to_csv(cerrado_2classes, file = "cerrado_2classes.csv")
# }

Run the code above in your browser using DataLab