tdm_matrix: Get a Matrix of Terms

Description Usage Arguments Value Examples

View source: R/tdm_matrix.R

Description

tdm_matrix

Usage

1
tdm_matrix(source_dir, stemming = FALSE)

Arguments

x

x An object, nominally a website loaded with readr::read_lines and passed to XML::htmlParse().

Value

An object of class character with tags, etc removed, ready for building a document term matrix.

Examples

1
2
3
4
5
6
7
#library(dplyr)
#library(readr)
#library(XML)

#read_lines("http://www.google.co.uk") %>% 
#htmlParse(encoding = "UTF8") %>%
#scrapeML::clean_string

ivyleavedtoadflax/scrapeML documentation built on May 18, 2019, 7:14 a.m.