50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


ISRaD (version 2.5.5)

ISRaD.flatten: ISRaD.flatten

Description

Joins tables in ISRaD based on linking variables and returns flat data frame/s

Usage

ISRaD.flatten(database, table)

Value

A dataframe with nrow = nrow(table) and ncol = sum(ncol(meta), ncol(site), ncol(profile), ..., ncol(table))

Arguments

database

ISRaD dataset object: e.g. ISRaD_data, or ISRaD_extra

table

ISRaD table of interest ("flux", "layer", "interstitial", "fraction", "incubation"). Must be entered with "".

Author

J. Beem-Miller

Details

ISRaD.extra.flatten generates 2-dimensional matrices for user-specified ISRaD tables by joining higher level tables (metadata, site, profile, layer) to lower level tables (layer, fraction, incubation, flux, interstitial).

Examples

Run this code
# Load example dataset Gaudinski_2001
database <- ISRaD::Gaudinski_2001
fractions <- ISRaD.flatten(database, "fraction")
layers <- ISRaD.flatten(database, "layer")

Run the code above in your browser using DataLab