tCorpus-cash-delete_columns: Delete column from the data and meta data

tCorpus$delete_columnsR 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

corpustools documentation built on May 31, 2023, 8:45 p.m.