Comments (4)
Hello! The online version of this book is generated with the actual code you see on the website via R Markdown and bookdown; you can see how that works here in this very repo. 😃
So we know that the code on the website works; you can see the the R Markdown file here. Probably there is some issue in how you are copying or translating the code?
from tidy-text-mining.
Thanks. I see now where I was going wrong (it was a knock-on effect, the bind_rows command of the first line doesn't have a closing bracket, Rstudio screamed as I entered it so I 'fixed' it by inserting one, meaning that the comma on the 'mutate' line threw up an error as R wasn't expecting one there. I clearly need to go and read more about the pipe and the way you use it here, and then will get to understanding the way the code here works. Thanks again.
from tidy-text-mining.
It is a complicated bit of pipes/code right there, for sure. 😔 One resource I really like for dplyr and the pipe (you may already know about it) is Garrett and Hadley's book available online.
from tidy-text-mining.
The function of bind_rows is use to connect two tables with the same names. For example, bind_rows(data1, data2). So, a comma is requred.
from tidy-text-mining.
Related Issues (20)
- preprocessing omission in sample code 6.2 for "The War of the Worlds" HOT 4
- different output for cor.test() in 1.5 HOT 3
- Wrong explanation of Fig. 3.1. HOT 3
- Chapter 1 missing introduction on getting self-generated texts into R HOT 2
- Error in Section 1.5 - gutenbergr Package
- Removing stop words-> which ones have I removed? HOT 2
- Topic labeling with Mutual Information HOT 2
- Comparing word frequencies 3 ways HOT 2
- Update for new tidyr HOT 1
- Broken code 9.1 HOT 4
- Version of Pride & Prejudice from Project Gutenberg has "Chapter" issues HOT 1
- Avoid adding columns with other functions HOT 1
- Evolve facets from traditional tilde notation to vars() HOT 1
- 9.1 Preprocessing Error HOT 2
- Replace superseded top_n with slice_min/slice_max
- Feature Request: Images of the data you are working with throughout the book HOT 2
- possible error with beginning of 'Case study: analyzing usenet text' HOT 2
- qualitative research HOT 2
- Question about grouping text for pairwise cor and tf idf HOT 2
- tm.plugin.webminin is no longer working for Chapter 5.3.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tidy-text-mining.