使用describe()时出现维数错误的错误是什么原因造成的?
我有一个数据集,其中一列的值为 1-7。它还具有一些 NA 字段。 该数据是通过 spss 文件导入的,因此具有值标签。
我尝试使用此函数来查看值标签:
describe(df$col)
但它返回了此错误:
Error in proxy[, ..., drop = FALSE] : incorrect number of dimensions
我不确定这意味着什么。我认为这可能意味着有太多不同的答案,但实际上只有 1-7 个。
table(df$col) 返回:
1 2 3 4 5 6 7
1707 214 103 74 297 54 70
我只想看看这些数字代表什么。我处理了这些数据,我想看看尽管进行了更改,标签是否仍保留在那里。
I have a dataset, where one column takes values 1-7. It also has some NA fields.
This data was imported through an spss file and thus has value labels.
I tried using this function to see the value labels:
describe(df$col)
But it returned this error:
Error in proxy[, ..., drop = FALSE] : incorrect number of dimensions
I am not sure what that means. I thought it might mean that there were too many varying answers, but it's literally just 1-7.
table(df$col) returns:
1 2 3 4 5 6 7
1707 214 103 74 297 54 70
I just want to see what those numbers represent. I worked with the data and I want to see if the labels stayed there despite making changes.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论