tCorpus$set_name | R Documentation |
Usage:
oldname |
the current/old column name |
newname |
the new column name |
## R6 method for class tCorpus. Use as tc$method (where tc is a tCorpus object).
set_name(oldname, newname)
set_meta_name(oldname, newname)
tc = create_tcorpus(sotu_texts[1:5,], doc_column = 'id')
## change column name in token data
tc$names ## original column names
tc$set_name(oldname = 'token', newname = 'word')
tc$tokens
## change column name in meta data
tc$meta_names ## original column names
tc$set_meta_name(oldname = 'party', newname = 'clan')
tc$set_meta_name(oldname = 'president', newname = 'clan leader')
tc$meta
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.