R" setnames"中的函数错误

时间:2016-11-09 01:52:50

标签: r

我在R中进行了升级,从那时起,我在之前运行良好的程序中遇到了很多错误。 我无法解决的问题是:

Error: could not find function "setnames"

我正在加载包裹(

library(plyr)
library(dtplyr)
library(tidyr)
library(lsr)
library(ggplot2)
library(stats)

我正在使用R: 平台x86_64-w64
专业3 未成年人3.2

有人知道怎么回事吗?

1 个答案:

答案 0 :(得分:5)

如果您在setNames中引用stats,这可能是一个错字。

请记住将这些资本用于资本化。

请参阅https://stat.ethz.ch/R-manual/R-devel/library/stats/html/setNames.html

(另一种可能是你可能没有加载data.table包。例如,参见Using data.table::setnames() when some column names might not be present