Re: [R] Rounding Elements of a Matrix

2010-09-20 Thread Raphael Fraser
a MD > > Work: 301-451-8575 > Mobile: 301-204-5642 > Email: zoppo...@mail.nih.gov > > From: Raphael Fraser [raphael.fra...@gmail.com] > Sent: Monday, September 20, 2010 12:21 PM > To: r-help@r-project.org > Subject: [R] Rounding

Re: [R] Rounding Elements of a Matrix

2010-09-20 Thread David Winsemius
On Sep 20, 2010, at 12:25 PM, Joshua Wiley wrote: Hi Raphael, mat <- matrix(rnorm(100), ncol = 2) round(mat, 2) for documentation see ?round Thanks, Josh. I was having trouble a couple of minutes ago remembering this. Getting old, I guess. In constructing my thanks to Josh I tested: pr

Re: [R] Rounding Elements of a Matrix

2010-09-20 Thread Joshua Wiley
Hi Raphael, mat <- matrix(rnorm(100), ncol = 2) round(mat, 2) for documentation see ?round Cheers, Josh On Mon, Sep 20, 2010 at 9:21 AM, Raphael Fraser wrote: > I have a 2x50 matrix and would like to round all the elements to 2 > decimal places. Can any one help? > > Thanks, > Raphael > > ___

[R] Rounding Elements of a Matrix

2010-09-20 Thread Raphael Fraser
I have a 2x50 matrix and would like to round all the elements to 2 decimal places. Can any one help? Thanks, Raphael __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.