[R] sprintf() question
Daniel Nordlund
djnordlund at verizon.net
Mon May 18 09:21:58 CEST 2009
> -----Original Message-----
> From: Peter Dalgaard [mailto:p.dalgaard at biostat.ku.dk]
> Sent: Monday, May 18, 2009 12:15 AM
> To: Daniel Nordlund
> Cc: ted.harding at manchester.ac.uk; r-help at r-project.org
> Subject: Re: [R] sprintf() question
>
> Daniel Nordlund wrote:
>
> > Enlightenment is what I asked for, and it is what I got. I
> was having a
> > senior moment I guess. I was picturing 8 as binary 0100,
> when obviously it
> > is binary 1000. So yes, the required power of 2 is 1, and
> it is fine with
> > me that Windows implementation does not display it. Thanks again.
>
> Wouldn't be fine with me....
>
> --
> O__ ---- Peter Dalgaard Øster Farimagsgade 5, Entr.B
> c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
> (*) \(*) -- University of Copenhagen Denmark Ph:
> (+45) 35327918
> ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX:
> (+45) 35327907
In retrospect, Peter is absolutley correct. It is not ok. And EI-JI Nakama
<nakama (a) ki.rim.or.jp> has pointed out some other infelicities in
sprintf() on Windows systems. So I am going to bow out of this discussion
and get some much needed sleep (12:23am PDT). I am sure that by the time I
get up in the morning, the experts will have it figured out.
Dan
Daniel Nordlund
Bothell, WA USA
More information about the R-help
mailing list