[英]How to install "mFilter" package for R version 3.5.1?
I am trying to get hodrick-prescott filter for some time-series, I try to get the "mFilter" package but it says this:我正在尝试获取一些时间序列的 hodrick-prescott 过滤器,我尝试获取“mFilter”包,但它说:
package ‘mFilter’ is not available (for R version 3.5.1)
How can I get installed this package?我怎样才能安装这个包? is there other package who makes the same functions?
是否有其他软件包具有相同的功能?
Greetings, Alvaro你好,阿尔瓦罗
It looks like the mFilter package has been removed from the CRAN repository.看起来mFilter包已从 CRAN 存储库中删除。
Package 'mFilter' was removed from the CRAN repository.
包“mFilter”已从 CRAN 存储库中删除。 Formerly available versions can be obtained from the archive.
以前可用的版本可以从档案中获得。 Archived on 2018-07-20 as check problems were not corrected despite reminders.
存档于 2018 年 7 月 20 日,因为尽管有提醒,但检查问题仍未得到纠正。
You can still download the archived package from here您仍然可以从这里下载存档包
And install as per below (just update your path to the downloaded .tar.gz file as appropriate)并按照以下进行安装(只需根据需要更新您下载的 .tar.gz 文件的路径)
install.packages("C:/Users/xxx/xxx/mFilter_0.1-3.tar.gz", repos = NULL, type = "source")
I solved the problem by using remotes library and then pulling the repo directly from github by using "install_github".我通过使用 remotes 库解决了这个问题,然后使用“install_github”直接从 github 中拉出 repo。
Here's the code:这是代码:
library(remotes)
install_github("cran/mFilter")
library(mFilter)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.