Learn R Programming

TLBC (version 1.0)

annotationsToLabels: Function to convert bout-level annotations to instance-level labels

Description

Converts bout-level annotations to instance-level labels.

Usage

annotationsToLabels(annotations, winSize, names = NULL)

Arguments

annotations
Path to file containing bout-level annotations, or directory of files containing bout-level annotations. Should be csv format with fields: identifier, StartDateTime, EndDateTime, behavior.
winSize
Window size in seconds.
names
(Optional) If provided, extract annotations only for identifiers in this list.

Value

Path to directory where instance-level label files are saved.