سؤال

I noticed that if I return my R results that numbers are limited to 5 digits, e.g. 100.34 while R is giving me 100.344523. Is it possible to increase this? I found that you can set the amount of digits in toJSON, but how to do that with opencpu?

cheers, Rico

هل كانت مفيدة؟

المحلول

You should be able to pass any arguments for toJSON in your HTTP GET request:

https://public.opencpu.org/ocpu/library/base/R/pi/json?digits=10
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top