我正在尝试使用dplyr(版本0.4.1)中的bind_rows()函数,但是R命令行找不到该函数。它可以找到该功能的帮助,但是可以满足使用该功能的所有要求
> bind_rows()
Error: could not find function "bind_rows"
难道我做错了什么?我知道bind_rows()仅在版本0.4.0中引入,但是我有一个更新的版本。
这是我的sessionInfo()
> R version 3.1.1 (2014-07-10)
> Platform: x86_64-apple-darwin13.1.0 (64-bit)
>
> locale:
> [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
>
> attached base packages:
> [1] utils datasets graphics grDevices stats methods base
>
> other attached packages:
> [1] lubridate_1.3.3 tidyr_0.2.0 dplyr_0.4.1 swirl_2.2.16 mvoutlier_2.0.5 sgeostat_1.0-25
>
>loaded via a namespace (and not attached):
> [1] assertthat_0.1 colorspace_1.2-4 DEoptimR_1.0-1 digest_0.6.4 GGally_0.4.8
> [6] ggplot2_1.0.0 grid_3.1.1 gtable_0.1.2 httr_0.5 magrittr_1.0.1
>[11] MASS_7.3-34 memoise_0.2.1 munsell_0.4.2 mvtnorm_1.0-0 parallel_3.1.1
>[16] pcaPP_1.9-49 pls_2.4-3 plyr_1.8.1 proto_0.3-10 Rcpp_0.11.2
>[21] RCurl_1.95-4.3 reshape_0.8.5 reshape2_1.4 robCompositions_1.9.0 robustbase_0.91-1
>[26] rrcov_1.3-4 scales_0.2.4 stats4_3.1.1 stringr_0.6.2 tcltk_3.1.1
>[31] testthat_0.8.1 tools_3.1.1 yaml_2.1.13
最佳答案
您是否尝试使用包前缀来调用它,例如dplyr::bind_rows()
即使与其他软件包之一发生冲突,这也应该起作用。
关于r - dplyr中的bind_rows()问题-程序包加载错误?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/28234826/