Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 使用库“;ggplot2”;创建显示至少出现2000次的令牌频率的可视化_R_Ggplot2_Text_Nlp - Fatal编程技术网

R 使用库“;ggplot2”;创建显示至少出现2000次的令牌频率的可视化

R 使用库“;ggplot2”;创建显示至少出现2000次的令牌频率的可视化,r,ggplot2,text,nlp,R,Ggplot2,Text,Nlp,这是我目前正在处理一个名为“q_content”的专栏的代码 我的错误: *Error: Must group by variables found in `.data`. * Column `q_content` is not found. Run `rlang::last_error()` to see where the error occurred.* 没有列q\u内容的错误不是很具体吗?使用生成的data.frame和您的代码工作的列。但是有一个q_content列…尝试以下行创建一

这是我目前正在处理一个名为“q_content”的专栏的代码

我的错误:

*Error: Must group by variables found in `.data`.
* Column `q_content` is not found.
Run `rlang::last_error()` to see where the error occurred.*

没有列
q\u内容的错误不是很具体吗?使用生成的data.frame和您的代码工作的列。但是有一个q_content列…尝试以下行创建一个虚拟数据对象:
tidy_text=data.frame(q_content=sample(x=c(“a”、“a”、“B”、“B”、“c”、“D”、“E”、“F”),replace=T,size=15000))
脚本开头和结尾的
*
是什么意思?您是否可以将
dput(head(tidy_text,100))
的输出添加到您的问题中,以便其他人可以看到数据中的内容,并支持您找到更好的答案?
*Error: Must group by variables found in `.data`.
* Column `q_content` is not found.
Run `rlang::last_error()` to see where the error occurred.*