Message-ID: <loom.20081222T084701-298@post.gmane.org>
Date: 2008-12-22T08:49:26Z
From: Dieter Menne
Subject: Convert ASCII string to Hex in R (vice versa)
Gundala Viswanath <gundalav <at> gmail.com> writes:
> For example I have the following ASCII strings:
>
> > ascii_str <- "ORRRIROOQRQQOLORRRRRRQRROKK>IKFAA"
> > ascii_str2 <- "FFFFFFFFFFDDDDDDDDDDCCCCC>>>>>>>>>"
>
> Each character in the above string represent a hexadecimal value.
> I want to translate those string into an array (of size == string length)
> which contain hexadecimal conversion.
>
> as.hexmode doesn't seem to do the job.
Trying again, simplified
ascii_str <- "ORQ>IK"
ascii_str2 <- "FDC"
What do you want as output in both cases? I can partially understand the second
case, but not the first.
Dieter