View source: R/PercentageCoverageSoilClasses.R
PercentageCoverageSoilClasses | R Documentation |
Percentage coverage of soil classes.
PercentageCoverageSoilClasses(soilMap, ignoreColumns = NULL, removeZeros = TRUE)
soilMap |
SpatialPolygonsDataFrame containing percentage of HOST soil classes, i.e. see data("PlynlimonSOIL"). |
ignoreColumns |
(optional) vector containing the columns to ignore |
removeZeros |
(optional) boolean. If TRUE (default), the function returns only non zero classes. |
This function recognises the column containing soil classes (it assumes that the name of the column contains the string "code").
A named numeric vector containing the percentage coverage of soil classes.
## Not run: data("PlynlimonSUBCATCHMENTS") data("PlynlimonSOIL") # Clip soil map over Severn catchment soilMap <- ClipSoilMap(soil = PlynlimonSOIL, catchment = PlynlimonSUBCATCHMENTS[1,]) PercentageCoverageSoilClasses(soilMap=soilMap, ignoreColumns = c(32, 33)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.