[R] Decimal places

Rlotus yerlan_ at hotmail.com
Sun Nov 18 20:01:50 CET 2012


I am a beginner in programmin in general and R specifically.

I would like to generate a set of random numbers in a normal distribution
but to limit the decimal places in these numbers to only 2.

I have been using x1 <- runif(1,0,1) to generate my numbers.

Can I add something to it to enable me to only get results rounded off to 6
decimal places?



--
View this message in context: http://r.789695.n4.nabble.com/Decimal-places-tp4649959.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list