[英]Identifying required packages from code
I want to follow the tutorial found on this site , but despite being thorough in all other aspects, the author has not included information on what packages need to be used for the code to function. 我想按照本网站上的教程进行操作,但尽管在所有其他方面都是彻底的,但作者还没有提供有关代码运行所需的软件包的信息。
As far as I understand one of them will be the PerformanceAnalytics
package, yet my inexperienced eye is not sure about what else I will need to include. 据我所知,其中一个将是PerformanceAnalytics
包,但我没有经验的眼睛不确定我还需要包括什么。
The fapply
function used in the code is one example that I cannot find. 代码中使用的fapply
函数是我找不到的一个例子。
fapply()
Error: could not find function "fapply" 错误:无法找到“fapply”功能
library(sos)
findFn("fapply", sortby = "Function")
The findFN(...) function is great. findFN(...)函数很棒。 It should open an internet browser window with the search results by itself at least it does for me. 它应该打开一个互联网浏览器窗口,其搜索结果本身至少对我而言。
The tutorial on Backtesting a Trading Strategy uses time series data as seen its part 1 and part 2. fapply is also used in part 2 关于回溯测试交易策略的教程使用时间序列数据,如第1部分和第2部分所示。在第2部分中也使用了fapply
As the data being collected and processed is time-series data, fapply() function belongs to far package which is used for Modelization for Functional AutoRegressive Processes. 由于正在收集和处理的数据是时间序列数据,因此fapply()函数属于远程包,用于功能自动回归过程的模型化。 I hope this helps. 我希望这有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.