https://github.com/cran/aqp
Raw File
Tip revision: 9c97608d22f635f4ecaeb467f2f7321170a31cde authored by Dylan Beaudette on 28 November 2010, 06:24:52 UTC
version 0.98-3
Tip revision: 9c97608
format_slices.Rd
\name{format_slices}
\alias{format_slices}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{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)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{data}{a dataframe containing at least: x and y coordinates, and some soil data}
  \item{crs}{a CRS object that is to be assigned to each depth slice SPDF}
  \item{depths}{a vector of depth slices to return}
  \item{variable}{the name of a variable in 'data' that is used to filter out points in 
  space when this variable is NA (optional)}
}
\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.
}
\value{
  A list of SPDF slices are returned, with elements representing each reqested slice in 'depths'.}
  
\references{http://casoilresource.lawr.ucdavis.edu/}
\author{Dylan E Beaudette}

\note{}

\seealso{\code{\link{plot_slices}}}
\examples{

}
% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
\keyword{manip}
back to top