Hi Dieter, Thanks for this (to hex): ?charToRaw
In addition, what's the command for ASCII -> Decimal conversion? - Gundala Viswanath Jakarta - Indonesia On Mon, Dec 22, 2008 at 7:01 PM, Dieter Menne <dieter.me...@menne-biomed.de> wrote: > Gundala Viswanath <gundalav <at> gmail.com> writes: > >> Sorry my mistake. I wanted to convert them >> into Decimal (not Hexadecimal). >> >> Given this string, the desired answer follows: >> >> > ascii_str <- "ORQ>IK" >> 79 82 81 62 73 75 >> >> > ascii_str2 <- "FDC" >> 70 68 67 >> > > lapply("ABCD",charToRaw)[[1]] > > Dieter > > ______________________________________________ > R-help@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@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.