View source: R/SOptim_GetTrainData.R
calcStats | R Documentation |
Performs data aggregation ops necessary to calculate the percentage cover of each class (including: NoData or NA's) and subset it using the threshold rule.
calcStats(x, thresh = 0.5)
x |
A data.frame or matrix with two columns named: "SID" (segment ID's) and "train" (with train class or NA) |
thresh |
A threshold value defining the minimum proportion of the segment ]0, 1] that
must be covered by a certain class to be considered as a training case. This threshold will
only apply if |
A data.frame with training data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.