Andrew Haynes Andrew Haynes -4 years ago 82
R Question

How to iterate through unicode characters?

I am trying to iterate through the cards available through unicode in R:

cat('\U1F0A1')
for example produces

Answer Source

You'd probably be better converting to the integer representation of the characters. Find your first point

start <- utf8ToInt('\U1F0A1')

Then use intToUtf8 to turn those numbers back into characters

intToUtf8(start)
intToUtf8(start + 1)
intToUtf8(start + 2)
# ...etc
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download