https://github.com/cran/aqp
Raw File
Tip revision: 490762247abee87bbc3158f73ed5620d5377b55a authored by Dylan Beaudette on 28 November 2023, 05:20:10 UTC
version 2.0.2
Tip revision: 4907622
summarizeSPC.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summarize.R
\name{summarizeSPC}
\alias{summarizeSPC}
\alias{summarizeSPC,SoilProfileCollection-method,}
\alias{summarize}
\title{Perform summaries on groups (from \code{group_by}) and create new site or horizon level attributes}
\usage{
summarizeSPC(object, ...)
}
\arguments{
\item{object}{A SoilProfileCollection}

\item{...}{A set of (named) comma-delimited R expressions that resolve to a summary value. e.g \code{groupmean = mean(clay, na.rm = TRUE)}}
}
\value{
A data.frame with one row per level in the grouping variable, and one column for each summary
}
\description{
\code{summarize()} is a function used for summarizing SoilProfileCollections. Specify the groups using the group_by verb, and then (named) expressions to evaluate on each group. The result is a data.frame with one row per categorical level in the grouping variable and one column for each summary variable.
}
\author{
Andrew G. Brown
}
back to top