R: Export a sits tibble metadata to the CSV format

sits_metadata_to_csv {sits} | R Documentation

## Export a sits tibble metadata to the CSV format

### Description

Converts metadata from a sits tibble to a CSV file. The CSV file will not contain the actual time series. Its columns will be the same as those of a CSV file used to retrieve data from ground information ("latitude", "longitude", "start_date", "end_date", "cube", "label").

### Usage

    sits_metadata_to_csv(data, file)

### Arguments

`data` | A sits time series.
`file` | Name of the exported CSV file.

### Value

The status of the operation.

### Author(s)

Gilberto Camara, gilberto.camara@inpe.br

### Examples

    # read a tibble with 400 samples of Cerrado and 346 samples of Pasture
    data(cerrado_2classes)
    # export a time series
    csv_file <- paste0(tempdir(), "/cerrado_2classes.csv")
    sits_metadata_to_csv(cerrado_2classes, file = csv_file)

[Package sits version 0.13.0 Index]