[R] Annoyance in as.numeric
Gavin Simpson
gavin.simpson at ucl.ac.uk
Tue Jun 17 00:02:38 CEST 2008
On Mon, 2008-06-16 at 14:50 -0700, Taylor, Z Todd wrote:
> I generally do something like
>
> storage.mode(my.matrix) <- "double"
Ahh, that's what I was missing; I was side tracked by working out why I
couldn't write an S3 method for as.double for matrices, and missed the
proper solution in the documentation.
Cheers,
G
>
> --Todd
--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Dr. Gavin Simpson [t] +44 (0)20 7679 0522
ECRC, UCL Geography, [f] +44 (0)20 7679 0565
Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk
Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/
UK. WC1E 6BT. [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
More information about the R-help
mailing list