Learn R Programming

HelpersMG (version 6.2)

asc: Return the codes (in UTF-8) of a string

Description

Return the codes (in UTF-8) of a string.

Usage

asc(x)

Value

A vector with ITF-8 codes of a string

Arguments

x

The string to be analyzed

Author

Based on this blog: http://datadebrief.blogspot.com/2011/03/ascii-code-table-in-r.html

Details

asc returns the codes (in UTF-8) of a string

See Also

Other Characters: char(), d(), tnirp()

Examples

Run this code
asc("abcd")
asc("ABCD")

Run the code above in your browser using DataLab