on-internet
← Community

Can I control the different decimal digits output in vector?

Stack Overflow ·

Can I control the different decimal digits output in vector in r? > c(2.44,5) [1] 2.44 5.00 If I want to get the following output format how can I do? For the vector, one is 2.44, other is 5. 2.44 5 it can not work for me. > c(2.44,round(5,0)) [1] 2.44 5.00

Comments

Sign in or sign up to comment and upvote.

No comments yet.