【发布时间】:2020-04-12 11:50:47
【问题描述】:
我有这个:
library(tidytext)
list_chars <- list("you and I", "he or she", "we and they")
list_chars_as_tibble <- lapply(list_chars, tibble)
list_chars_by_word <- lapply(list_chars_as_tibble, unnest_tokens)
知道了:
Error in check_input(x) :
Input must be a character vector of any length or a list of character
vectors, each of which has a length of 1.
想要得到这个:
[[1]]
1 you
2 and
3 I
[[2]]
1 he
2 or
3 she
[[3]]
1 we
2 and
3 they
请帮忙,我相信我已经尝试了所有方法,但显然没有,谢谢
【问题讨论】: