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 - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -