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

grepSPC

Subset SPC with pattern-matching for text-based attributes


Description

grepSPC() is a shorthand function for subsetting SoilProfileCollections. For example, by filter(grepl(spc, ...)) or filter(stringr::str_detect(spc, ...)). It provides pattern matching for a single text-based site or horizon level attribute.

Arguments

object

A SoilProfileCollection

attr

A character vector (column in object) for matching patterns against.

pattern

REGEX pattern to match in attr

...

Additional arguments are passed to grep()

Value

A SoilProfileCollection.

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.