sits_to_csv | R Documentation |
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"). If the file is NULL, returns a data.frame as an object
sits_to_csv(data, file = NULL)
## S3 method for class 'sits'
sits_to_csv(data, file = NULL)
## S3 method for class 'tbl_df'
sits_to_csv(data, file)
## Default S3 method:
sits_to_csv(data, file)
data |
Time series (tibble of class "sits"). |
file |
Full path of the exported CSV file (valid file name with extension ".csv"). |
Return data.frame with CSV columns (optional)
Gilberto Camara, gilberto.camara@inpe.br
csv_file <- paste0(tempdir(), "/cerrado_2classes.csv")
sits_to_csv(cerrado_2classes, file = csv_file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.