问题标签 [revolution-r]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
r - 将用户名作为变量传递并使用 deployR 返回 r 脚本的结果
考虑实现一个简单函数的 ar 脚本,该函数从 r 中的数据帧返回直方图,该函数由三列组成,分别是用户名、月份名和月薪。现在如何集成到 deployR 中,一个简单的 http 调用可以传递用户名的参数并获取与该用户相关的直方图?由于我不是应用程序开发人员,并且习惯于使用简单的 http 调用将用户名作为 URL 参数之一来集成 BI 应用程序,因此我想在这里实现相同的功能。有什么可能吗?说http://url/username=XYZ会返回该用户的情节。
sql-server - Sql Server 2016 RevoScaleR 错误 $ 未为此 S4 类定义运算符
定义计算上下文
错误:
“createDataPartition 命令引发错误,sampleDataDS$column1 中的错误:未为此 S4 类定义 $ 运算符”
有人可以帮我解决这个错误吗?我不确定如何访问从 SQL Server 加载的表中的列。谢谢你!
r - Install.packages("ggplot2") 安装旧版本 (1.0.0)
所以我安装了一个旧版本的ggplot2
with install_version
from devtools
(0.9.1 或其他) 来看看它是如何工作的 - 顺便说一下之前安装的 2.0.0 版本。然后我升级了版本,它出乎意料地给了我 1.0.0 版本,而不是当前的 2.0.0。
现在,当我这样做时,install.packages("ggplot2")
我得到了相同的 1.0.0。还从 Rstudio 菜单中选择“ Check for package upgrades..
”项目,它会告诉我“所有软件包都是最新的”。
是什么赋予了?现在的最新版本不是ggplot
2.0.0吗?这是我的会话信息:
以下是它看到的存储库:
更新:
多亏了德克,我明白了发生了什么。看起来安装 RRO 包会重置我的 CRAN 存储库。我也可以理解为什么必须这样,尽管也许我应该对此提出警告。从这个博客条目中,我也看到了如何修复它。http://www.r-bloggers.com/permanently-setting-the-cran-repository/
revolution-r - 在 Revolution Enterprise 中并行化的 3rd-party R 包的某个地方有多少/哪个/列表?
我是否可以在 Revolution Enterprise 上使用 forecast、nnet、ets 等软件包,以利用 Revolution 独特的并行化方法?是否有一些哪些软件包可以让我利用它的列表?
我的问题是否反映了对革命究竟提供了什么可以解决的核心误解(我问这最后一部分是因为,如果答案是否定的,那么革命首先有什么意义?)?
r - rxMerge 因子水平
我是 RRE 的新手,我遇到了 rxMerge 函数的问题。
我想通过具有不同级别数的因子列合并两个 xdf 数据集。我想要一个内部连接来只保留匹配的级别。我收到以下错误:
错误:因子键“垫子”的级别不匹配。调用 rxFactors 使级别相同,然后对输入文件调用 rxSort。
这是我的合并功能:
我在通知中看到了一个关于出发地和目的地航班的例子(http://www.revolutionanalytics.com/sites/default/files/data-step-white-paper.pdf),但我希望我的输出只有匹配级别的数量。我在两个数据集中都有唯一的级别,级别是 ID 号(带有字母,所以我不能将它们传递给数值)。
非常感谢提前
欧列尔
r - 如何在 Revolution R Enterprise 中更新 R 版本?
我刚刚安装了最新的 MRO 版本(3.2.3)
当我打开 RGui 时,我看到以下内容
但是,当我打开 Revolution R Enterprise 时,我看到 3.2.2 仍在加载
如何更改此设置,以使 Revolution R Enterprise 指向 3.2.3 而不是 3.2.2
我在这里和 Google/Bing 上进行了搜索,但一无所获。
c# - 在 C# 中使用 DeployR 将行名分配给 DataFrame
我正在使用DeployR
库与 C# .Net 中的 R 交互。
我目前正在实施 DataFrames。我可以创建行编号为 1、2、3.. 的 DataFrame,但我的要求是为行提供名称,因为 R 中的 DataFrame 支持它。如何实现这一点?
例如,我的模型有EmpId
, Empname
, EmpSalary
, Age
, DepartmentName
。如何使用引用此数据框中的行EmpName
?
谢谢, 希拉斯
rbind - revoScaleR 中的 rbind 等效项
我如何连接两个 xdf,就像在 rbind 函数中一样?两个 xdf 具有相同的名称和列顺序。
我看到 rxImport() 函数中有一个“附加”参数,但我不知道在哪里指定第二个 xdf 文件。
谢谢 !
r - RStudio Server together with Microsoft R open: environment variables missing
I am running RStudio Server (0.99.879) on Amazon EC2 and have recently updated to Microsoft R Open 3.2.3 (formerly Revolution R). All software runs on Ubuntu 14.04.
Since I wanted to have my Amazon access keys available in all shell sessions for all users, I have put them in /etc/environment
like AWS_ACCESS_KEY=123
.
RStudio runs under user rstudio
which I have checked via executing system("whoami")
in RStudio. Before switching to Microsoft R Open [MRO], system("echo $AWS_ACCESS_KEY")
(executed from RStudio) gave the correct result 123
. But now it returns an empty string.
However, if I switch to user rstudio
in the console via su - rstudio
and start MRO from the shell, system("echo $AWS_ACCESS_KEY")
gives the correct result, which really puzzles me.
It seems as if only RStudio together with MRO makes R forget the environment variables defined in etc/environment
.
Do you guys know what could be the reason for this strange behavior? Any pointers to possible fixes?
I would really like to keep the keys in just one place (which is /etc/environment
) and definitely not hard coded in my R code. One fix that I could think of is to read /etc/environment
from R, extract the AWS_ACCESS_KEY
and set it via Sys.setenv()
. But this is mostly just a hack and I would like to understand what the real problem is...
BTW: Maybe I should mention that I had to change the R_HOME_DIR
variable in the R start script /usr/bin/R
to R_HOME_DIR=/usr/lib64/MRO-3.2.3/R-3.2.3/lib/R
because the code that was determining the home directory before did not work with MRO.
r - XDF 上的随机选择
我尝试了很多替代方案,包括我们可以在 Revo 网站上找到的那个
nr
什么时候info$numRows
从rxGetInfo("two_vars.xdf")
错误:分析的样本数据集没有变量。doTryCatch(return(expr), name, parentenv, handler) 中的错误:std::exception
感谢您的帮助!