[R] 'matrix' returns integer instead of decimal
Ben Bolker
bolker at ufl.edu
Mon Jan 21 05:07:56 CET 2008
Brant Inman <brant.inman <at> gmail.com> writes:
>
> *As usual, the R-helpers were bang on. Some package must have modified my
> digits option without me noticing.*
I'm pretty certain that the arm package is the problem.
> options("digits")
$digits
[1] 7
> library(arm)
Loading required package: MASS
Loading required package: Matrix
Loading required package: lattice
Loading required package: lme4
Loading required package: R2WinBUGS
Loading required package: coda
arm (Version 1.0-38, built: 2007-12-31)
Working directory is /home/ben
options( digits = 2 )
Loading required package: car
Loading required package: foreign
> options("digits")
$digits
[1] 2
I've complained about this to the maintainer but not
yet loudly or persistently enough :-)
cheers
Ben Bolker
More information about the R-help
mailing list