# Default: expand the SampleID column
extract_sample_depths(example_data_strat)
# Expand a different column (here "stratlayer_sample")
extract_sample_depths(example_data_strat, sample_column = "stratlayer_sample")
# Return only SampleID and depth columns
extract_sample_depths(example_data_strat, remove_layer_metadata = TRUE)
Run the code above in your browser using DataLab