Basic program in R programming

Why am I not getting an efficient output? I mean in the options, I gave the number of digits after the decimal point as 4, but in the output I'm getting 5 digits. May I know why is that happening?

While it seems like that's the sort of thing options(digits=4) would change, it's not. Here's a pretty good response from Stack Overflow on the same topic.

Keep in mind that this is just a display artifact. Inside of R the vector of numbers is a very long floating point number.

5 Likes

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.