如何使用 R 脚本在 Spotfire 中生成相关值
How to generate correlation values in Spotfire using an R script
我相信有一种方法可以在不编写 R 脚本的情况下在 Spotfire 中生成相关值,但是我想了解为什么以下代码在 Spotfire 中不是 运行。我还尝试将统计信息和基础库加载到 Spotfire 中,但无济于事。
脚本如下:
output <- cor(input1, input2)
错误信息如下:
TIBCO Enterprise Runtime for R returned an error: 'Error in library(pkg, character.only = TRUE) : there is no package called 'correlation''.
最有可能发生的事情是 Tibco 有一个名为 correlation 的预安装包,它掩盖了 cor()
功能。从统计库调用它:
stats::cor(input1,input2)
我相信有一种方法可以在不编写 R 脚本的情况下在 Spotfire 中生成相关值,但是我想了解为什么以下代码在 Spotfire 中不是 运行。我还尝试将统计信息和基础库加载到 Spotfire 中,但无济于事。
脚本如下:
output <- cor(input1, input2)
错误信息如下:
TIBCO Enterprise Runtime for R returned an error: 'Error in library(pkg, character.only = TRUE) : there is no package called 'correlation''.
最有可能发生的事情是 Tibco 有一个名为 correlation 的预安装包,它掩盖了 cor()
功能。从统计库调用它:
stats::cor(input1,input2)