[R] Converting Decimal numbers into Binary
jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Fri Dec 27 17:18:09 CET 2019
Your question is incomplete... what do you expect the result to be?
Perhaps  is relevant?
On December 27, 2019 7:42:36 AM PST, Paul Bernal <paulbernal07 using gmail.com> wrote:
>Hope you are all doing well. I need to find a way to convert ascii
>to six digit binary numbers:
>I am working with this example, I converted the string to ascii, and
>finally to decimal, but I am having trouble converting the decimal
>into their six digit binary representation. The code below is exactly
>I have so far:
>ascii_datformat <- utf8ToInt("133m using ogP00PD;88MD5MTDww using 2D7k")
>Base <- ascii_datformat - 48
>ifelse(Base > 40, Base-8, Base)
>x <- rev(intToBits(Base))
>dec2bin <- function(x) paste(as.integer(rev(intToBits(x))), collapse =
>any guidance will be greatly appreciated,
> [[alternative HTML version deleted]]
>R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.
Sent from my phone. Please excuse my brevity.
More information about the R-help