as.CalGrid: Convert data to class CalGrid.

Description Usage Arguments Value Examples

View source: R/calibration.R

Description

Tries to coerce any two-column matrix or data.frame to a calibrated probability distribution (an object of class "CalGrid") for use by the rcarbon package.

Usage

1

Arguments

x

A two-column matrix or data.frame class object.

Value

A CalGrid class object of probabilities or summed probabilities per calendar year BP.

Examples

1
2
3
df <- data.frame(calBP=5000:2000,PrDens=runif(length(5000:2000)))
mycalgrid <- as.CalGrid(df)
plot(mycalgrid)

rcarbon documentation built on Oct. 1, 2018, 5:03 p.m.