Learn R Programming

soilassessment (version 0.3.0)

createTexturedata: A function for creating spatial dataframe of normalized soil texture proportions

Description

The function creates spatial dataframe of normalized soil texture proportions. They are normalized to 100 percent

Usage

createTexturedata(clay,silt,sand)

Value

The output is a spatial pixel dataframe of normalized soil texture proportions (for each pixel)

Arguments

clay

clay proportion of soil texture in percent

silt

silt proportion of soil texture in percent

sand

sand proportion of soil texture in percent

Author

Christian Thine Omuto

Details

the input data of soil texture proportions are imported into R as spatial raster or dataframe. They need to have uniform coordinate reference system (CRS) and same pixel size (resolution) if in raster map format. The sum of the proportions should be close to 100 per cent for each row

See Also

createTexturedata, appendTextureclass

Examples

Run this code
#data(textureinput)
newmap=textureinput
# \donttest{
texturedata=createTexturedata(newmap$clay, newmap$silt, newmap$sand)
cor(texturedata$CLAY,texturedata$CLAY_n)^2
# }

Run the code above in your browser using DataLab