extract_event: Extracts events from a directory of raw files.

View source: R/extract_event.R

extract_eventR Documentation

Extracts events from a directory of raw files.

Description

Extracts events from a directory of raw files.

Usage

extract_event(
  event,
  rawevent,
  t,
  ow = TRUE,
  dir.data = NULL,
  toTSD = TRUE,
  last = TRUE,
  temp = FALSE,
  ...
)

Arguments

event

is the identifier of the event, either given as the number of the event, a string contained in the name of the event, or the path of the event directory.

rawevent

specifies a directory with raw files which are copied to 'event' and converted to TSD filess before running the segmentation.

t

is a two element vector of ftim values between which rawfiles are extracted from a directory (see the description of 'event').

ow

is FALSE to not overwrite existing data when copying data from 'rawevent'.

dir.data

is the path to the directory in which the projects are stored, defaulted by the variable Acoustics_datasets_directory().

toTSD

is false to disable converting to TSD files.

last

is FALSE to skip the last raw file, useful if this file is not complete.

temp

is TRUE to only return the temporary directory if raw files already exist and toTSD==TRUE, in which case the existing and temporary tsd files are not merged into the existing.

...

are parameters passed to EKRaw2TSD().


arnejohannesholmin/sonR documentation built on April 14, 2024, 11:39 p.m.