LENA.overlap: Overlap LENA function

Description Usage Arguments Value Examples

View source: R/LENA.overlap.R

Description

Open an annotation file and add 2 columns to find overlap according to the LENA-style overlap definition

Usage

1
2
3
4
5
6
7
LENA.overlap(
  meta_row,
  ChildRecordings,
  use_data_table = FALSE,
  verbose = FALSE,
  threads = 1
)

Arguments

meta_row

: a row from the meta containing all the info of the cvs file

ChildRecordings

: a ChildRecordings class

use_data_table

: use the data.table package to read the .csv annotation data (depending on the operating system and the number of threads used it can be 3 to 5 times faster than 'read.csv')

verbose

: if TRUE information will be printed out in the console

threads

the number of threads to run in parallel

Value

A data.frame with 2 added columns

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 

library(ChildRecordsR)
path = "/mnt/94707AA4707A8CAC/CNRS/corpus/vandam-daylong-demo"
CR = ChildRecordings(path)
raw_file <- LENA.overlap(CR$all.meta[1,], CR, use_data_table = TRUE,
                         verbose = TRUE, threads = parallel::detectCores())
head(raw_file)


## End(Not run)

LAAC-LSCP/ChildRecordsR documentation built on July 26, 2021, 3:25 p.m.