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

Typo on Slide #28 of 'Die Kunst des Zählens' #17

Open
LeonStumberger opened this issue May 18, 2022 · 0 comments
Open

Typo on Slide #28 of 'Die Kunst des Zählens' #17

LeonStumberger opened this issue May 18, 2022 · 0 comments

Comments

@LeonStumberger
Copy link

In chapter 4 'Die Kunst des Zählens' slide #28 'Zählen aller Worte in Korpus/ Partition' there is a typo in the second code chunk.
Currently the code reads
dt <- count(bt2008, p_attribute = c("word", "pos")) %>% subset(pos %in% c("NN", "ADJA")) %>% as.data.table(cnt2008min) %>% setorderv(dt, cols = "count", order = -1L) %>% head()

however it should be
dt <- count(bt2008, p_attribute = c("word", "pos")) %>% subset(pos %in% c("NN", "ADJA")) %>% as.data.table() %>% setorderv(cols = "count", order = -1L).

"cnt2008min" was never defined before and there is no need to specify the dataframes within the pipe.

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

1 participant