r - Set precision inside a function -


i trying figure out how increase precision of output of function. need have output of acf function @ least 5 digits accuracy, while gives me 3.

v = c(1.1,3.2,2.1,4.5)  acfv = acf(v)  acfv 

the precision-adjusting function know options(digits=...), works explicit calculations in global environment. can me?

you looking @ print-method output. acf values stored in full numeric precision:

> acfv$acf , , 1             [,1] [1,]  1.0000000 [2,] -0.3399337 [3,]  0.2900897 [4,] -0.4501561 

Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -