【发布时间】:2019-05-18 11:24:41
【问题描述】:
library(dplyr)
playstore <- read.csv("googleplaystore.csv")
str(playstore)
class(playstore)
playstore <- tbl_df(playstore)
head(playstore)
class(Installs)
【问题讨论】:
-
从这段代码中,Installs 的唯一第一个实例是在尝试查找其类时。你的意思是
class(playstore$Installs)? -
@NelsonGon 实际上,我试图过滤安装次数超过 10000 的应用程序 - filter(select(playstore, App, Installs, Rating), Installs 在 Ops.factor(Installs, 10000) 中:'>' 对因素没有意义我也将“安装”的数据类型从因素更改为数字。
-
我们无法有效地帮助您,因为您的问题不包括可重现的示例。似乎
Installs列被读取为因素(可能是因为它具有非数字外观的行)但我们无法确定,因为我们无权访问您的文件 -
向您的问题添加示例数据、预期输出和/或当前输出和代码。使用
dput(head(playstore))并将其添加到您的问题中。
标签: r