Skip to contents

Calculate bootstrapped means for each group in a dataframe

Usage

bootstrap_means(data, group, age, d13C, d18O, D47, Nsim = 1e+05)

Arguments

data

A dataframe or tibble that should have columns outlier, broadid ("other" for samples), D47_final, d18O_PDB_vit, d13C_PDB_vit, and the grouping column.

group

The column name in data with a character or factor column that contains the binning information that you want to calculate bootstrapped averages for.

age

The column name in data with the sample ages.

d13C

The column name in data with the carbon isotope values.

d18O

The column name in data with the oxygen isotope values.

D47

The column name in data with the clumped isotope values.

Nsim

The number of bootstraps you want to run. Defaults to the number of rows in calib.

Value

A tibble with bootstrapped slope-intercept pair.