e-sensing / sits

Satellite image time series in R
https://e-sensing.github.io/sitsbook/
GNU General Public License v2.0
441 stars 76 forks source link

Allow "sf" format for validation data in sits_accuracy() function #1150

Closed EstefaPizarro closed 2 weeks ago

EstefaPizarro commented 1 month ago

Describe the requested improvement One of the arguments of the function sits_accuracy() is "validation", which are the samples to validate the classification. According with the documentation "The validation data needs to contain the following columns: "latitude", "longitude", "start_date", "end_date", and "label". It can be either a path to a CSV file, a sits tibble or a data frame"; please allow this argument to be in "sf" format and contain the same columns

gilbertocamara commented 2 weeks ago

Dear @EstefaPizarro You can now use both sf objects or POINT shapefiles as validation data.