我现在要把R和tableau做结合,计算字段如下:
SCRIPT_REAL("fit <- kmeans(data.frame(.arg1,.arg2,.arg3,.arg4),centers=3);
fit$cluster",
SUM([Discount]),SUM([Profit]),SUM([Quantity]),SUM([Sales]))
在执行过程中出现如下错误:
无法完成操作
与 RServe 服务 通信时出错。
Error in sample.int(m, k) :
cannot take a sample larger than the population when 'replace = FALSE'
请教下R大神,这个问题怎么解决?求详细解答
R和tableau做结合出错
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- qq963922113 2018-05-31 02:18关注
Error in sample.int(m, k) :
cannot take a sample larger than the population when 'replace = FALSE'解决 无用评论 打赏 举报