tiers_delete {act} | R Documentation |
Delete tiers
Description
Deletes tiers in all transcript objects of a corpus.
If only tiers in certain transcripts should be affected set the parameter filterTranscriptNames
.
In case that you want to select tiers and/or transcripts by using regular expressions use the function act::search_makefilter
first.
Results will be reported in @history
of the transcript objects.
Usage
tiers_delete(x, tierNames, filterTranscriptNames = NULL)
Arguments
x |
Corpus object. |
tierNames |
Character string; names of the tiers to be deleted. |
filterTranscriptNames |
Vector of character strings; names of the transcripts to be modified. If left open, all transcripts will be checked. |
Value
Corpus object.
See Also
tiers_add, tiers_rename, tiers_convert, tiers_sort, helper_tiers_new_table, helper_tiers_sort_table
Examples
library(act)
# get info about all tiers
all.tiers <- act::info(examplecorpus)$tiers
# tiers 'A' and 'B' occur 6 times in 6 transcripts
all.tiers["A", "tier.count"]
all.tiers["B", "tier.count"]
# delete tiers
tierNames <- c("A", "B")
x<- examplecorpus
x <- act::tiers_delete(examplecorpus, tierNames=tierNames)
x@history[length(x@history)]
# tiers 'A' and 'B' do not occur anymore
act::info(x)$tiers$tier.name
[Package act version 1.3.1 Index]