[R] how to control the data type

John Kane jrkrideau at yahoo.ca
Sat Apr 22 00:59:19 CEST 2006


Have a look at  ?round for one way. 

----- Original Message ----
From: zhongmiao wang <zhongmiao at gmail.com>
To: r-help at stat.math.ethz.ch
Sent: Thursday, April 20, 2006 11:00:25 PM
Subject: [R] how to control the data type

Hello:
I am generating a random number with rnorm(1). The generated number
has 8 decimals. I don't want so many decimals. How to control the
number of decimals in R?
Thanks!

Zhongmiao Wang

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list