适用于Windows的R,ncdf和clim.pact

时间:2019-01-25 15:27:37

标签: r

我的最终目标是在R中安装clim.pact软件包。这需要ncdf软件包,此软件包在此3.5.1 R版本中不再可用。我的选择是2。

  1. 下载clim.pact软件包,并使用ncdf4函数替换与ncdf相关的函数。我发现应该替换的ncdf函数是cdfextract.Rretrieve.nc.R,但是我不确定我必须替换ncdf4的哪个函数。

2。找到同时兼容ncdfclim.pact软件包的R版本。

1 个答案:

答案 0 :(得分:1)

尝试将R和软件包的旧版本结合使用。它们可以在我的Windows 7 PC上运行:

R version 3.1.3 (2015-03-09)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United Kingdom.1252   
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C                           
[5] LC_TIME=English_United Kingdom.1252    

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

other attached packages:
[1] clim.pact_2.3-10 akima_0.6-2      devtools_1.13.5  ncdf_1.6.8      

loaded via a namespace (and not attached):
 [1] curl_3.2        digest_0.6.14   grid_3.1.3      httr_1.3.1      lattice_0.20-30 memoise_1.1.0  
 [7] R6_2.2.2        sp_1.2-7        tools_3.1.3     withr_2.1.2
相关问题