Re: [R] printing in binary

From: Moshe Olshansky <m_olshansky_at_yahoo.com>
Date: Tue, 17 Jun 2008 18:35:31 -0700 (PDT)


I think that this one finds a binary representation of integer but does not print data in binary format (creating binary file, like write(unit,*) in FORTRAN).

> From: jim holtman <jholtman_at_gmail.com>
> Subject: Re: [R] printing in binary
> To: "Edna Bell" <edna.bell01_at_gmail.com>
> Cc: r-help_at_stat.math.ethz.ch
> Received: Wednesday, 18 June, 2008, 11:08 AM
> check out the as.character.binmode in the R.util package:
>
> > ?as.character.binmode
> > intToBin(12345)
> [1] "11000000111001"
> >
>
>
> On Tue, Jun 17, 2008 at 8:05 PM, Edna Bell
> <edna.bell01_at_gmail.com> wrote:
> > Hi r Gurus:
> >
> > Is there a way to print numbers in binary format,
> please?
> >
> > I know that you can use sprintf for hex, but I'm
> not sure how to get binary.
> >
> > Thanks
> > Edna
> >
> > ______________________________________________
> > R-help_at_r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained,
> reproducible code.
> >
>
>
>
> --
> Jim Holtman
> Cincinnati, OH
> +1 513 646 9390
>
> What is the problem you are trying to solve?
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained,
> reproducible code.



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 18 Jun 2008 - 01:38:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 18 Jun 2008 - 06:30:49 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive