Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
> library("stringr")
> str_sub("", start = -1)
[1] "̃"
> str_sub("ñ", start = -1)
[1] "ñ"
@infrahumano
Copy link

infrahumano commented Apr 12, 2020

What's the difference between the two? The way you write ñ?

@johnmyleswhite
Copy link
Author

johnmyleswhite commented Apr 12, 2020

Yes, one was written using a combining character. In a Julia REPL, you can generate the first by writing the following and hitting tab to complete it:

julia> n\tilde

@infrahumano
Copy link

infrahumano commented Apr 12, 2020

Ugh.

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