Learn R Programming

soilassessment (version 0.3.0)

classLUT: A function for developing Look-up Table (LUT) for the soil condition class map

Description

This function develops a Look-Up Table (LUT) for the class type map of soil condition. LUT is important map legends or maps re-classification.

Usage

classLUT(fgrid,indicator)

Value

The output is a dataframe containing classes in the map and corresponding unique integers

Arguments

fgrid

Input classified map

indicator

The soil condition indicator of interest as contained in the input map for example, "texture", "salinity", etc.

Author

Christian Thine Omuto

Details

The input raster map should contain only one band for the soil indicator for clear identification of the band.

See Also

classCode, classnames

Examples

Run this code
textrd=suitabinput["texture"]
# \donttest{
LUT=classLUT(textrd,"texture")
LUT
# }

Run the code above in your browser using DataLab