Description Usage Arguments Details Value See Also Examples
checks if a shapefile with ground truth data contains all the necessary fields in the correct format.
1 | checkSamples(x)
|
x |
An object or a list of class sp containing a data.frame (e.g. SpatialPolygonsDataFrame). |
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).
A data.frame with the consistency checks for each element in x.
1 2 3 4 5 6 7 8 9 10 11 12 | {
require(fieldRS)
# Example ground-truth data
data(fieldData)
# check shapefile content
cs <- checkSamples(fieldData)
head(cs)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.