Learn R Programming

aqp (version 0.99-9.51)

format_slices: Format Depth Slices of a Soil Profile

Description

This function constructions a list of spatial data frames from soil profile data that has already been 'sliced' into regular depth intervals.

Usage

format_slices(data, crs, depths, variable = NULL)

Arguments

data
a dataframe containing at least: x and y coordinates, and some soil data
crs
a CRS object that is to be assigned to each depth slice SPDF
depths
a vector of depth slices to return
variable
the name of a variable in 'data' that is used to filter out points in space when this variable is NA (optional)

Value

  • A list of SPDF slices are returned, with elements representing each reqested slice in 'depths'.

Details

If the resulting SPDF are to be used for geostatistical interpolation or simulation, it is necessary to supply an argument for 'variable', such that points in space where that variable is NA will be removed.

References

http://casoilresource.lawr.ucdavis.edu/

See Also

plot_slices