tidytext Error: Can't convert a function to a quosure

时间:2018-03-25 20:39:30

标签: r tidytext

I am starting to use tidytext to get basic word frequencies for a text file with a collection of emails and lots of garbage in between.

The relevant part of the script is:

library(tidytext)

data <- read_lines("emails.txt")

text_tibble <- tibble(line = seq_along(data), text = data)

text_tibble %>%
        unnest_tokens_(word, text)

Error: Can't convert a function to a quosure

Can you please orient me? Thanks. Original data result of dput(text_tibble)

1 个答案:

答案 0 :(得分:0)

tidytext包确实有标准评估的大多数函数的强调版本,尽管these are being deprecated支持tidyeval语义。

使用强调版本的想法是,它们按值来获取参数,而不是像我们大多习惯使用的常用非标准评估版本那样使用dplyr。如果你想使用下划线版本(就像我说的那样,不推荐使用),你需要传递实际值。

UITextGestureClusterLoupe
相关问题