as.UncalGrid function

Convert data to class UncalGrid.

Convert data to class UncalGrid.

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.

as.UncalGrid(x)

Arguments

  • x: A two-column matrix or data.frame class object.

Returns

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

Examples

df <- data.frame(CRA=5000:2000,PrDens=runif(length(5000:2000))) mycalgrid <- as.UncalGrid(df)
  • Maintainer: Enrico Crema
  • License: GPL (>= 2)
  • Last published: 2023-08-24