Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re script 003 #1

Open
shawngraham opened this issue Jul 29, 2016 · 1 comment
Open

re script 003 #1

shawngraham opened this issue Jul 29, 2016 · 1 comment

Comments

@shawngraham
Copy link

Hi Ben,
Code all still works. For the material I was using, I had to make these wee changes:

blogtext1 <- read.csv("blogtext-for-topics.csv", stringsAsFactors = FALSE)
corp <- Corpus(VectorSource(blogtext1))
corp <- tm_map(corp, PlainTextDocument)
corp <- tm_map(corp, FUN = tm_reduce, tmFuns = funcs)

...the tm package changed things up a bit.

@benmarwick
Copy link
Owner

Thanks, that's good to know. If it were to do it again I might use the new tidytext which seems to have simpler and more systematic methods of working with text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants