getComponents {voiceR}R Documentation

Get Components Name and Positions

Description

Indicates the presence and order in which components are retrieved from the file name of each recording.

Usage

getComponents(fileNames, fileNamePattern = "ID_Condition_Dimension", sep = "_")

Arguments

fileNames

A character vector of audio file names.

fileNamePattern

A character string indicating the naming format of the audio files, such as "ID-Condition-Dimension", "Condition_ID_Dimension" or "ID". Default corresponds to "ID_Condition_Dimension".

sep

A non alpha-numeric that acts as separator between the different naming components. Default corresponds to underscore.

Value

A list, containing a vector of positions for each component and a data.frame containing the values for each component of the audio files.

Examples

getComponents(names(testAudioList), fileNamePattern = "ID_Condition_", sep = "_")


[Package voiceR version 0.1.0 Index]