【问题标题】:opencpu returns numbers with max 5 digitsopencpu 返回最多 5 位数字
【发布时间】:2013-12-05 11:03:13
【问题描述】:

我注意到,如果我返回我的 R 结果,数字被限制为 5 位,例如100.34 而 R 给我 100.344523。有可能增加这个吗?我发现你可以在 toJSON 中设置位数,但是如何使用 opencpu 呢?

干杯,里科

【问题讨论】:

  • options("digits")
  • 嗨 Roman,我做到了,设置为 7。

标签: r opencpu rjsonio


【解决方案1】:

您应该能够在您的HTTP GET 请求中为toJSON 传递任何参数:

https://public.opencpu.org/ocpu/library/base/R/pi/json?digits=10

【讨论】:

  • 嗨,杰罗恩,太棒了!谢谢!在此搜索和阅读上花费了几个小时,但忘记检查您的公共应用程序。干杯,里科
  • PS:我们现在有一个邮件列表;)
猜你喜欢
  • 2012-02-22
  • 1970-01-01
  • 1970-01-01
  • 2015-08-20
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多