[英]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.