![]() |
如何从R或/和Matlab运行shell脚本?
假设我们具有可以在shell中执行的命令X ,并在stdout和stderr中返回一些结果。是否可以通过R或/和Matlab做到这一点?如果是,如何处理命令结果?
[B]回答:[/B] 您可以在R中使用system()命令执行shellscript,system-command等 它记录在[URL]http://cran.r-project.org/doc/manuals/R-lang.html#System-and-foreign-language-interfaces[/URL] [url=https://stackoverflow.com/questions/5067199]更多&回答...[/url] |
所有时间均为北京时间。现在的时间是 03:01。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.