helper_tiers_merge_tables | R Documentation |
Merges several the tier tables into one tier table.
helper_tiers_merge_tables(...)
... |
accepts different kinds of objects; transcript objects, lists of transcript objects (as in @transcripts of a corpus object) and tier tables (as in @tiers of a transcript object). |
NOTE: To actually modify the tiers in a transcript object or a corpus object corpus use the functions of the package, e.g. act::transcripts_merge
.
This function is only a helper function and for people that like experiments.
If tiers with the same name are of different types ('IntervalTier', 'TextTier') an error will be raised.
In that case can use, for example, 'act::tier_convert()' to change the tier types.
Data.frame
helper_tiers_sort_table, helper_tiers_merge_tables, tiers_convert, tiers_rename, tiers_sort, transcripts_merge
library(act)
# --- Create two tier tables from scratch
tierTable1 <- act::helper_tiers_new_table(c("a","b","c","d"),
c("IntervalTier", "TextTier","IntervalTier","TextTier"))
tierTable2 <- act::helper_tiers_new_table(c("a","b","x","y"),
c("IntervalTier", "TextTier","IntervalTier","TextTier"))
tierTable3 <- act::helper_tiers_merge_tables(tierTable1,tierTable2)
tierTable3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.