Convert ASCII Characters to Decimal Representation

DESCRIPTION:
Convert a given ASCII character string to corresponding decimal integer representation.

USAGE:
AsciiToInt(strings)

REQUIRED ARGUMENTS:
strings:
a vector of character strings.

VALUE:
a vector giving the ASCII decimal integer values for the characters in string. The length of the returned vector is sum(nchar(strings)).

DETAILS:
This function can be used to determine how ASCII characters map to decimals so that they can be represented in functions which require integers, for example the marks argument to legend.

SEE ALSO:
legend , lines , nchar , par .

EXAMPLES:
AsciiToInt("n") # returns decimal value of n
# [1] 110

AsciiToInt("M&2") # returns decimal values of M, & and 2 # [1] 77 38 50