create_annuli_idFUN: Create a function that identifies annual layers based on...

View source: R/preprocess_data.R

create_annuli_idFUNR Documentation

Create a function that identifies annual layers based on distance

Description

This creates a function that determines annuli layers:

  • only for transects that cross the nacre

  • only up to the ncr_psm transition

  • in the case that no annuli measurements exist the annual layer is labeled "U" for unknown

Usage

create_annuli_idFUN(.data, .reference_transition = "on_")

Arguments

.data

a measurement dataset (for a single id_transect)

.reference_transition

the transition between layer to use as the reference. Defaults to "on_" (the transition from "laser on" to the next layer). "ipx_" is the transition from inner epoxy to the next layer (either nacre or prismatic layer depending on the location of the transect)

Value

a function of x that cuts x based on the distances measured between annuli


bsaul/elktoeChemistry documentation built on Nov. 17, 2022, 8:10 a.m.