Re: [R] decimal places

2015-02-24 Thread peter dalgaard
> On 24 Feb 2015, at 18:24 , Duncan Murdoch wrote: > > stats:::print.pairwise.htest > > and you'll see it hard-codes 2 significant digits. (Which surprises me > a bit, but I guess your p-values are all 0.030 and 0.050.) It was a decade and a half ago, but I think the general idea of the hardc

Re: [R] decimal places

2015-02-24 Thread Duncan Murdoch
On 24/02/2015 9:11 AM, Linh Nguyen Vaccarello wrote: > I am very new to R and I'm trying to increase my decimal places (from 2 to > 4) for this code: > >> with(longitudinal, pairwise.wilcox.test(DV, Time, > p.adjust.method="holm", >

[R] decimal places

2015-02-24 Thread Linh Nguyen Vaccarello
I am very new to R and I'm trying to increase my decimal places (from 2 to 4) for this code: >with(longitudinal, pairwise.wilcox.test(DV, Time, p.adjust.method="holm", paired=TRUE)) Right now the output is: Pairwise

Re: [R] decimal places in R2HTML

2013-01-26 Thread Joshua Wiley
Realized I did not reply to this list. On Sat, Jan 26, 2013 at 7:54 PM, Joshua Wiley wrote: > Hi Erin, > > Most packages creating output for inclusion in pages, reports, books, > etc. do some rounding as R's default level of printed precision tends > to be overkill. R2HTML is no different, but

[R] decimal places in R2HTML

2013-01-26 Thread Erin Hodgess
Dear R People: I have an AOV model that I get confidence intervals from via > confint(chick1.aov1) 2.5 % 97.5 % trtA 1.472085 1.607915 trtB 1.512085 1.647915 trtC 1.328751 1.464582 > I am using R2HTML to produce HTML output. However, the HTML code itself just has rounded values, i.e.,

Re: [R] Decimal places

2012-11-18 Thread R. Michael Weylandt
On Sunday, November 18, 2012, Rlotus wrote: > 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 generat

[R] Decimal places

2012-11-18 Thread Rlotus
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 t

Re: [R] Decimal places in a function output

2010-11-10 Thread Marc Schwartz
On Nov 10, 2010, at 9:51 AM, Liliana Pacheco wrote: > Hi R users > I have a very simple function. As the return of that function I want the > answer with 5 decimal places, but it hasn't worked with sprintf, nor with > format, nor print. This is how I used sprintf: > > cuant<-function(r,n){ > d<-s

Re: [R] Decimal places in a function output

2010-11-10 Thread Duncan Murdoch
On 10/11/2010 10:51 AM, Liliana Pacheco wrote: Hi R users I have a very simple function. As the return of that function I want the answer with 5 decimal places, but it hasn't worked with sprintf, nor with format, nor print. This is how I used sprintf: cuant<-function(r,n){ d<-seq(-1,1,by=0.001)

[R] Decimal places in a function output

2010-11-10 Thread Liliana Pacheco
Hi R users I have a very simple function. As the return of that function I want the answer with 5 decimal places, but it hasn't worked with sprintf, nor with format, nor print. This is how I used sprintf: cuant<-function(r,n){ d<-seq(-1,1,by=0.001) . . . (SOME CALCULATIONS) . . . return(sprintf("%