ECSAS.add.sample.label: Add sample labels to a dataframe of watches

View source: R/ECSAS.create.transects.R

ECSAS.add.sample.labelR Documentation

Add sample labels to a dataframe of watches

Description

Add a Sample.Label column to wtchs and set it to the corresponding Sample.Label from trns that each watch belongs to.

Usage

ECSAS.add.sample.label(wtchs, trns)

Arguments

wtchs

a dataframe of watches containing at least a column name WatchID

trns

a transect object as returned by ECSAS.create.transects().

Details

Simpy unnests the Watches list-column from trns and joins it to the wtchs dataframe matching on WatchID. Replaces existing Sample.Label column if it exists. Throws an error if any row of trns has no associated watches.


RoyChristian/ECSASconnect documentation built on April 28, 2024, 2:14 a.m.