Tidyr单独返回错误“ _tidyr_simplifyPieces”

时间:2018-10-12 19:01:18

标签: r tidyr

使用Tidyr单独将一列分为两部分会返回以下错误:

df <- data.frame(ID=11:13, FOO=c('a|b', 'b|c', 'x|y'))

tidyr::separate(data = df, col = FOO, into = c("left", "right"), sep = 
"\\|")
  

simplePieces(pieces,n,fill ==“ left”)中的错误:   找不到对象“ _tidyr_simplifyPieces”

关于为什么发生这种情况的任何建议?

Session Info:

R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: OS X El Capitan 10.11.6

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] grid      stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] zeallot_0.1.0              fANCOVA_0.5-1              survival_2.42-3           
 [4] lubridate_1.7.4            lmPerm_2.1.0               gridExtra_2.3             
 [7] PerformanceAnalytics_1.5.2 xts_0.10-2                 RColorBrewer_1.1-2        
[10] kableExtra_0.9.0           zoo_1.8-1                  caTools_1.17.1            
[13] randomForest_4.6-14        scales_1.0.0               factoextra_1.0.5          
[16] ggplot2_3.0.0              psych_1.8.4                data.table_1.11.2         
[19] reshape2_1.4.3             car_3.0-0                  carData_3.0-1             
[22] raster_2.6-7               sp_1.2-7                   dplyr_0.7.5               
[25] tidyr_0.8.1 

0 个答案:

没有答案