tCorpus$delete_columns {corpustools} | R Documentation |
Delete column from the data and meta data
Description
Usage:
Arguments
cnames |
the names of the columns to delete |
Details
## R6 method for class tCorpus. Use as tc$method (where tc is a tCorpus object).
delete_columns(cnames)
delete_meta_columns(cnames)
Examples
d = data.frame(text = c('Text one','Text two','Text three'),
date = c('2010-01-01','2010-01-01','2012-01-01'))
tc = create_tcorpus(d)
tc$tokens
tc$delete_columns('token')
tc$tokens
tc$meta
tc$delete_meta_columns('date')
tc$meta
[Package corpustools version 0.5.1 Index]