[R] decimal places

Linh Nguyen Vaccarello lnguye9 at uwo.ca
Tue Feb 24 15:11:13 CET 2015


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 comparisons using Wilcoxon signed rank test

data:  DV and Time

    yr15 yr2  yr5
yr2 0.03 -    -
yr5 0.03 0.05 -
yr8 0.03 0.05 0.03

I have tried various codes and they didn't work:
options(digits=4)
with(longitudinal, pairwise.wilcox.test(DV, Time,
                                        p.adjust.method="holm",
                                        paired=TRUE))

> with(longitudinal, pairwise.wilcox.test(DV, Time,
+ p.adjust.method="holm",
+ paired=TRUE),
+ options(digits=4))

> with(longitudinal, pairwise.wilcox.test(DV, Time,
+ p.adjust.method="holm",
+ paired=TRUE,
+ digits=4))

> with(longitudinal, pairwise.wilcox.test(DV, Time,
+ p.adjust.method="holm",
+ paired=TRUE),
+ signif(digits=4))

thanks,
Linh

	[[alternative HTML version deleted]]



More information about the R-help mailing list