Skip to contents

Adds markers to the data. Handles duplicate timestamps automatically: If removeDuplicates is TRUE, it keeps only the first marker. Otherwise, it collapses duplicates (e.g., "Start+ConditionA") to preserve data integrity.

Usage

add_markers(nirsData, removeDuplicates = FALSE)

Arguments

nirsData

Dataframe from import_nirs()

removeDuplicates

(Logical) If TRUE, only the first marker at a timestamp is kept. Default is FALSE (which collapses duplicates into one string).