PercentageCoverageSoilClasses: Percentage coverage of soil classes.

Description Usage Arguments Details Value Examples

Description

Percentage coverage of soil classes.

Usage

1
2
PercentageCoverageSoilClasses(soilMap, ignoreColumns = NULL,
  removeZeros = TRUE)

Arguments

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.

Details

This function recognises the column containing soil classes (it assumes that the name of the column contains the string "code").

Value

A named numeric vector containing the percentage coverage of soil classes.

Examples

1
2
3
4
5
6
7
8
9
## 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)

cvitolo/curvenumber documentation built on May 14, 2019, 12:54 p.m.