as.UncalGrid: Convert data to class UncalGrid.

Description Usage Arguments Value Examples

View source: R/calibration.R

Description

Tries to coerce any two-column matrix or data.frame to a uncalibrated probability distribution (an object of class "UncalGrid") 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 CRA.

Examples

1
2
df <- data.frame(CRA=5000:2000,PrDens=runif(length(5000:2000)))
mycalgrid <- as.UncalGrid(df)

rcarbon documentation built on Jan. 13, 2021, 7:09 p.m.