get_overlap_depths: Get overlapping sample depths

View source: R/get_overlap_samples.R

get_overlap_depthsR Documentation

Get overlapping sample depths

Description

This function makes it easy to see which samples in the input file have overlapping sample depths. It may be used if the tapas::check_pretreat() function flags a warning for the presence of overlapping sample depths.

Usage

get_overlap_depths(series)

Arguments

series

The input data frame. A matrix with the following columns: CmTop, CmBot, AgeTop, AgeBot, Volume, and one or more columns with the data that is being analysed (variables).

Details

The function checks if any CmBot[i] > CmTop[i+1]. If TRUE, a data.frame with the overalpping samples is returned.

Value

A data frame including only the rows of the overlapping samples sorted in ascending order by depth. The rownames are inherited from the input data.frame, and mya thus help finding the flagged samples in raw data files.

Author(s)

Walter Finsinger

See Also

check_pretreat()


wfinsinger/tapas documentation built on Aug. 22, 2024, 4:28 a.m.