loadTraces {ultrapolaRplot} | R Documentation |
Processes metadata and TextGrids
Description
Processes layers, tiers, and categories within TextGrids. Extracts x and y coordinate data from metadata.
Usage
loadTraces(directory_name, tiernameAll = c(""), categoriesAll = list(c()),
layersAll = c(""), mergeCategories = c(FALSE))
Arguments
directory_name |
a (readable binary-mode) connection or a character string giving the name of the folder containing metadata and textgrid files to load (when tilde expansion is done). |
tiernameAll |
respective tiers (if applicable) within layers. If none specified, all tiers are checked. Accepts either string or list of respective tiers. |
categoriesAll |
respective categories of segments to extract within tiers. If respective tiername and categories specified as "" and c(""), textgrids will not be checked and coordinates will be extracted from metadata without labeling segment. If all categories specified through c(), all labeled segments from respective layers and tiers will be extracted. |
layersAll |
list of layers within metadata to extract x and y coodinate data from. Defaults to 'tongue' layer. Accepts either string or list of layers. |
mergeCategories |
boolean or boolean array, as to whether to merge respective categories. |
Value
Returns dataframe of filename, specific annotation number, segment, x-coordinate, y-coordinate.