removeMeta-methods {tm}R Documentation

Methods for Function removeMeta in Package ‘tm’

Description

Methods for function removeMeta in package tm.

Methods

object = "Corpus", cname = NULL, dname = NULL
Returns a text document collection where the cname is removed from the CMetaData and dname is removed from the DMetaData of corpus object.
object = "TextRepository", cname = NULL, dname = NULL
Returns a text repository where cname is removed from the meta data slot of the object text repository.

See Also

DMetaData CMetaData RepoMetaData

Examples

data("crude")
CMetaData(crude)
DMetaData(crude)
tdcl <- appendMeta(crude, cmeta = list(created = date()), dmeta = list(numbers = 1:20))
CMetaData(tdcl)
DMetaData(tdcl)
tdcl <- removeMeta(crude, cname = "created", dname = "numbers")
CMetaData(tdcl)
DMetaData(tdcl)

[Package tm version 0.3-3 Index]