Learn R Programming

isoWater (version 1.2.1)

mwl: Mwl Object

Description

Creates objects of type "mwl" containing statistics for a meteoric water line in H and O isotope space.

Usage

mwl(HO, plot = TRUE)

Value

Returns an object of class “mwl”, a numeric vector containing meteoric water line statistics. See mwlSource.

Arguments

HO

data.frame. Hydrogen (column 1) and oxygen (column 2) isotope values for 3 or more water samples.

plot

logical. Plot the data, MWL, and standard error of prediction?

Details

mwl will return an error if fewer than 3 sample values are provided and a warning if fewer than 10 samples are provided or if the correlation coefficient between H and O values is less than 0.7. Sample values should span a broad enough range of isotope values to strongly constrain the MWL.

Model II (reduced major axis) regression is used to accommodate errors on both isotope values.

Examples

Run this code
O = runif(10, -15, -2)
H = O * 8 + 10 + rnorm(10, 0, 6)
MWL = mwl(data.frame(H, O))
str(MWL)

Run the code above in your browser using DataLab