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

View source: R/asc.R

ascR Documentation

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

Description

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

Usage

asc(x)

Arguments

x

The string to be analyzed

Details

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

Value

A vector with ITF-8 codes of a string

Author(s)

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

See Also

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

Examples

asc("abcd")
asc("ABCD")

HelpersMG documentation built on Oct. 5, 2023, 5:08 p.m.