Learn R Programming

rcarbon (version 1.4.0)

as.UncalGrid: Convert data to class UncalGrid.

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

as.UncalGrid(x)

Arguments

x

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

Value

A CalGrid class object of probabilities or summed probabilities per CRA.

Examples

Run this code
# NOT RUN {
df <- data.frame(CRA=5000:2000,PrDens=runif(length(5000:2000)))
mycalgrid <- as.UncalGrid(df)
# }

Run the code above in your browser using DataLab