View source: R/encoding_detection.R
stri_enc_isascii | R Documentation |
The function checks whether all bytes in a string are <= 127.
stri_enc_isascii(str)
str |
character vector, a raw vector, or
a list of |
This function is independent of the way R marks encodings in character strings (see Encoding and stringi-encoding).
Returns a logical vector. The i-th element indicates whether the i-th string corresponds to a valid ASCII byte sequence.
Marek Gagolewski and other contributors
The official online manual of stringi at https://stringi.gagolewski.com/
Gagolewski M., stringi: Fast and portable character string processing in R, Journal of Statistical Software 103(2), 2022, 1-59, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v103.i02")}
Other encoding_detection:
about_encoding
,
stri_enc_detect2()
,
stri_enc_detect()
,
stri_enc_isutf16be()
,
stri_enc_isutf8()
stri_enc_isascii(letters[1:3])
stri_enc_isascii('\u0105\u0104')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.