Learn R Programming

textmining (version 0.0.1)

filter_documents: Function to filter tagged text

Description

Function to filter tagged text

Usage

filter_documents(x, column, value)

Arguments

x
tmTaggedCorpus
column
column name
value
filtered value

Examples

Run this code
## Not run: 
# library(dplyr)
# library(textmining)
# corp <- tmCorpus(c("This is corp corp", "Document 2 corp corp"))
# rd <- tmTaggedCorpus(corp)
# filtered_tmTaggedCorpus <- filter_documents(rd, "tag", "NP")
# corpus <- tmCorpus(filtered_tmTaggedCorpus)
# ## End(Not run)

Run the code above in your browser using DataLab