pb210_cumulative_mass: Calculate cumulative mass

View source: R/physical_parameters.R

pb210_cumulative_massR Documentation

Calculate cumulative mass

Description

Calculate cumulative mass

Usage

pb210_cumulative_mass(masses, position = 0.5)

Arguments

masses

A vector of sequential masses

position

0 for the cumulative mass at the top of the section and 1 for the cumulative mass at the bottom of the section (0.5 for the middle, which is the default).

Value

A vector of cumulative masses

Examples

# top of slice
pb210_cumulative_mass(c(0.1, 0.1, 0.1, 0.1), position = 0)

# middle of slice
pb210_cumulative_mass(c(0.1, 0.1, 0.1, 0.1), position = 0.5)

# bottom of slice
pb210_cumulative_mass(c(0.1, 0.1, 0.1, 0.1), position = 1)


paleolimbot/pb210 documentation built on May 8, 2022, 8:10 a.m.