Learn R Programming

aqp (version 2.1.0)

$: Get data from column of horizon or site data in a SoilProfileCollection

Description

Get the data from a column accessed by name x$name. Column names other than profile ID are not shared between site and horizons.

Usage

# S4 method for SoilProfileCollection
$(x, name)

Arguments

x

a SoilProfileCollection

name

a single column name in site or horizon table

Examples

Run this code

data(sp1)

depths(sp1) <- id ~ top + bottom

# get data from a column by name (prop)
sp1$prop

Run the code above in your browser using DataLab