xset2H: Dune height calculation from cross-set thicknesses

Description Usage Arguments Value

View source: R/paleo_depth.r

Description

xset2H takes measured cross-set thicknesses (y) and converts it to dune heights (H).

Usage

1
xset2H(y, mode = "simple", output = "vanilla")

Arguments

y

A vector of measured cross-set thicknesses in meters.

mode

Takes two values: simple and pdfFit. simple uses a simple approximation to determine the beta value in Leclair's equation relating x-sets to dune heights. pdfFit uses a more complicated procedure, fitting a PDF from Paola + Borgman to get the beta value. pdfFit is better suited when there are adequate data to estimate the distribution.

output

Takes two values: vanilla and rich. vanilla only returns the estimated value of H, or dune height. rich returns H, as well as beta and either startVal which is the inital guess of a for the MLE algorithm in pdfFit, or a span of H values giving a reasonable range of one particular assumption.

Value

Either a single numeric if output = vanilla, or a list if output = rich.


ericbarefoot/barefootr documentation built on May 3, 2019, 8:33 p.m.