小编Bet*_*eth的帖子

xtfrm.data.frame(x) 中的警告:无法 xtfrm 数据帧:在 R 中以数字方式排序数据帧时出错

我几周前开始学习 R,所以我对 R 编码仍然非常陌生;我试图以数字方式订购数据帧,但在订购的数据帧之上,由于执行函数 order(nameofthedataframe),出现“xtfrm.data.frame(x) 中的警告:无法 xtfrm 数据帧”。有人可以告诉我我做错了什么吗?

非常感谢!

例子:

order(iris[,"Petal.Width"]) # this seems fine
order(iris[,"Petal.Width",drop=FALSE]) # warning
order(iris[,c("Petal.Width","Sepal.Width")]) # warning
Run Code Online (Sandbox Code Playgroud)

R版本4.1.0

r function dataframe

9
推荐指数
1
解决办法
6万
查看次数

标签 统计

dataframe ×1

function ×1

r ×1