Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

summarizeSPC

Perform summaries on groups (from group_by) and create new site or horizon level attributes


Description

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.

Usage

summarizeSPC(object, ...)

Arguments

object

A SoilProfileCollection

...

A set of (named) comma-delimited R expressions that resolve to a summary value. e.g 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

Author(s)

Andrew G. Brown


aqp

Algorithms for Quantitative Pedology

v1.29
GPL (>= 3)
Authors
Dylan Beaudette [aut, cre], Pierre Roudier [aut, ctb], Andrew Brown [aut, ctb]
Initial release
2021-04-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.