rttm_pairs: find pairs of rttm files suitable for evaluations

Description Usage Arguments Details Value Examples

View source: R/rttm_pairs.R

Description

find pairs of rttm files suitable for evaluations

Usage

1
2
rttm_pairs(test = NULL, reference = NULL, location = NULL,
  prefix = NULL, include_subfolders = FALSE)

Arguments

test

character, file paths to reference files, i.e. rttm fiels with prefix

reference

character, file paths to test files, i.e. rttm files without prefix

location

character, path that contains .rttm files

prefix

character, optionally, select only pairs for these prefixes. Default is NULL, i.e. all prefixes will be returned

include_subfolders

logical, include files in subfolder (default is FALSE)

Details

The function works in one of two ways. First, you can specify a location= in which all rttm files will be checked.

Second, you supply vectors for test= and reference= files.

The way via location= takes precedence, i.e. if you supply all three arguments, only the location= option is used.

Value

a data.frame with pairs of files

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# using location
location <- dirname(list.files(system.file("", package = "avutils"), full.names = TRUE)[1])
rttm_pairs(location = location)
rttm_pairs(location = location, prefix = c("tocomboSad_"))

# using test and reference
reference <- system.file("BER_0485_12_07_09123.rttm", package = "avutils")
test <- list.files(system.file("", package = "avutils"), pattern = ".rttm$", full.names = TRUE)
rttm_pairs(test = test, reference = reference)
rttm_pairs(test = test, reference = reference, prefix = "tocomboSad_")

gobbios/avutils documentation built on Feb. 19, 2020, 9:44 a.m.