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", >

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

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

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)