View source: R/helper_transcriptNames_set.R
helper_transcriptNames_set | R Documentation |
Sets the names of all transcript objects in a corpus object both in the names of the list x@transcripts
and in the slot @name
of each transcript.
helper_transcriptNames_set(x, transcriptNames)
x |
Corpus object |
transcriptNames |
Vector of character strings; new names. |
List
library(act) # get current names of the transcripts names.old <- act::helper_transcriptNames_get(examplecorpus) # rename giving numbers as names names.test <- as.character(seq(1:length(names.old))) test <- act::helper_transcriptNames_set(examplecorpus, names.test) names(test@transcripts) # create an error: empty name ## Not run: names.test <- names.old names.test[2] <- " " test <- act::helper_transcriptNames_set(examplecorpus, names.test) ## End(Not run) # create an error: double names ## Not run: names.test <- names.old names.test[2] <- names.test[1] test <- act::helper_transcriptNames_set(examplecorpus, names.test) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.