convo_rank: convolve by rank

Description Usage Arguments Value

View source: R/utils.R

Description

Given a vector of ranks, pulls the pmfs for each rank and subtracts the youngest from each via convolution.

Usage

1
2
3
4
5
6
convo_rank(
  ranks,
  pmfs = char_pmfs,
  vals = as.numeric(colnames(pmfs)),
  dat = charcoal
)

Arguments

ranks

is a vector of ranks (element of rank list)

pmfs

is the matrix of charcoal pmfs

vals

is the vector of values (years) associated with pmfs

dat

is the charcoal variable data.table

Value

pmfs of ranks convolved by subtracting youngest from each


crumplecup/muddier documentation built on Aug. 18, 2021, 11:02 a.m.