powered by
checks if a shapefile with ground truth data contains all the necessary fields in the correct format.
checkSamples(x)
An object or a list of class sp containing a data.frame (e.g. SpatialPolygonsDataFrame).
A data.frame with the consistency checks for each element in x.
Checks if a shapefile - or a list of - contains necessary columns and if these have the right format. It searches for:
sampler - Character vector with name of responsible person.
date - Date vector with the date on which each sample was collected (formatted as "yyyy-mm-dd").
label - Character vector sample label (e.g. land cover class).
labelCheck
# NOT RUN { { require(fieldRS) # Example ground-truth data data(fieldData) # check shapefile content cs <- checkSamples(fieldData) head(cs) } # }
Run the code above in your browser using DataLab