helper_tiers_new_table: Helper: Create a tier table

Description Usage Arguments Details Value See Also Examples

View source: R/helper_tiers_new_table.R

Description

Creates a new tier table as necessary in @tiers of a transcript object.

Usage

1
helper_tiers_new_table(tierNames, tierTypes = NULL, tierPositions = NULL)

Arguments

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'.

Details

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.

Value

Data.frame

See Also

helper_tiers_sort_table, helper_tiers_merge_tables, tiers_convert, tiers_rename, tiers_sort

Examples

1
2
3
4
5
6
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

act documentation built on Feb. 22, 2021, 5:11 p.m.