[英]Calling R functions from C++
我想執行多項式邏輯回歸[使用glm()],並在C ++中做一些圖形[gplot()]。
我無法在C ++中為這種回歸編寫函數,但是也許可以打開R並調用glm()函數以便在C ++中執行它,是嗎? 怎么樣? 我將不勝感激。
提前致謝!
是的,您可以通過RInside項目提供一個實例化R解釋器的(非常簡單的)類R 然后,您可以將命令作為(可能是多行)字符串傳遞,並通過REPL進行評估。
R
程序包本身以及不同的博客文章中都有許多示例。 由於它廣泛使用Rcpp ,因此在Rcpp書的一章中也有介紹。
[英]C++ calling functions from an array of functions
[英]Calling C++ functions from a C src
[英]Calling C++ functions from C file
[英]Calling functions from main() in c++
[英]C++ Calling Functions with Parameters from Map
[英]Calling C++ functions from Python
[英]Calling Python functions from C++ with namespace
[英]Calling other functions from a C++ constructor
[英]Calling functions from section 2 of the manual in C++
[英]Calling C++ functions from Java
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.