View source: R/physical_parameters.R
pb210_cumulative_mass | R Documentation |
Calculate cumulative mass
pb210_cumulative_mass(masses, position = 0.5)
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). |
A vector of cumulative masses
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.