[英]R interface to wolfram alpha
就自己组装这样的 package 而言,有一些建议可能会有所帮助:
首先是查看 Wolfram Alpha 的 API: http://products.wolframalpha.com/api/
在那里,您将看到可以进行的各种 URL 调用以及返回格式。
接下来,查看一些与其他 API 做类似事情的包。 www.omegahat.org 上有一些示例(特别是在“REST-related packages”小节下,但还有其他一些),以及 CRAN 上的多个包,例如 Drew Conway 的 package “infochimps”,Greg 的 RLastFM Hirson,以及我的“twitteR”和“RStackExchange”包。
查看这些包如何与它们各自的 web API 交互应该可以帮助您入门 - 这是一个相当简单的过程。 The basic strategy is to build up the URL you need for a call w/ the parameters that you want and then to use R to send that to the server & retrieve the output (typically either in JSON or XML) and then parse that result back进入 R object。
也许从 R 调用 package: http://rpython.r-forge.r-project.org/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.