Re: [R] Digits in R

2014-03-25 Thread Qiang Kou
; TIBCO Software > wdunlap tibco.com > > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf > > Of David Carlson > > Sent: Tuesday, March 25, 2014 7:02 AM > > To: 'Qiang Kou'; &#x

Re: [R] Digits in R

2014-03-25 Thread William Dunlap
gt; > - > David L Carlson > Department of Anthropology > Texas A&M University > College Station, TX 77840-4352 > > > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of

Re: [R] Digits in R

2014-03-25 Thread Pavneet Arora
Thank you Qiang Kou , it worked :) Appreciate it. From: Qiang Kou To: Pavneet Arora/UK/RoyalSun@RoyalSun Cc: R help Date: 25/03/2014 13:37 Subject:Re: [R] Digits in R Have you tried "round(vars, digits = 4)" ? KK On Tue, Mar 25, 2014 at 7:17 AM, Pav

Re: [R] Digits in R

2014-03-25 Thread Duncan Murdoch
On 25/03/2014 7:17 AM, Pavneet Arora wrote: Hello All, I am new in R, so please excuse the basic questions. But how do you change the number of digits to be displayed? I have done the following, hoping I will get 4 decimal places in my answer: vars <- var(cbind(Sepal.l,Sepal.w,Petal.l,Petal.w)

Re: [R] Digits in R

2014-03-25 Thread David Carlson
:r-help-boun...@r-project.org] On Behalf Of Qiang Kou Sent: Tuesday, March 25, 2014 8:45 AM To: Pavneet Arora Cc: R help Subject: Re: [R] Digits in R Have you tried "round(vars, digits = 4)" ? KK On Tue, Mar 25, 2014 at 7:17 AM, Pavneet Arora < pavneet.ar...@uk.rsagroup.com> wrote

Re: [R] Digits in R

2014-03-25 Thread Duncan Murdoch
On 25/03/2014 7:17 AM, Pavneet Arora wrote: Hello All, I am new in R, so please excuse the basic questions. But how do you change the number of digits to be displayed? I have done the following, hoping I will get 4 decimal places in my answer: vars <- var(cbind(Sepal.l,Sepal.w,Petal.l,Petal.w)

Re: [R] Digits in R

2014-03-25 Thread Qiang Kou
Have you tried "round(vars, digits = 4)" ? KK On Tue, Mar 25, 2014 at 7:17 AM, Pavneet Arora < pavneet.ar...@uk.rsagroup.com> wrote: > Hello All, > > I am new in R, so please excuse the basic questions. > But how do you change the number of digits to be displayed? > > I have done the following,

[R] Digits in R

2014-03-25 Thread Pavneet Arora
Hello All, I am new in R, so please excuse the basic questions. But how do you change the number of digits to be displayed? I have done the following, hoping I will get 4 decimal places in my answer: vars <- var(cbind(Sepal.l,Sepal.w,Petal.l,Petal.w)) print(vars,digits=4) But as seen below fro