Skip to content

Instantly share code, notes, and snippets.

@nilforooshan
Last active March 30, 2019 09:06
Show Gist options
  • Select an option

  • Save nilforooshan/3e7e7c1e2fe04346fcf31f5a208691be to your computer and use it in GitHub Desktop.

Select an option

Save nilforooshan/3e7e7c1e2fe04346fcf31f5a208691be to your computer and use it in GitHub Desktop.
R: Print unicode character strings

Print unicode character strings

a <- "\U00B5"
cat(a)

µ

grep("U",a)

integer(0)

nchar(a)

[1] 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment