View source: R/helper_tiers_new_table.R
helper_tiers_new_table | R Documentation |
Creates a new tier table as necessary in @tiers
of a transcript object.
helper_tiers_new_table(tierNames, tierTypes = NULL, tierPositions = NULL)
tierNames |
Vector of character strings; names of the tiers. |
tierTypes |
Vector of character strings; types of the tiers. Allowed values: "IntervalTier","TextTier". Needs to have the same length as 'tierNames'. |
tierPositions |
Vector of integer values; Sort order of the tiers. Needs to have the same length as 'tierNames'. |
NOTE: To actually modify the tiers in a transcript object or a corpus object corpus use the functions of the package. This function is only a helper function and for people that like experiments.
Data.frame
helper_tiers_sort_table, helper_tiers_merge_tables, tiers_convert, tiers_rename, tiers_sort
library(act)
# --- Create a tier table from scratch
tierTable <- act::helper_tiers_new_table(c("a","b","c", "d"),
c("IntervalTier", "TextTier","IntervalTier","TextTier"))
tierTable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.