Insert Arrow emojis
Details
This function is vectorized. Wrong input of direction
will result in NA
s.
#@return Character vector of emojis.
Examples
arrow("up-down")
#> [1] "↕️"
arrow(c("up", "up", "down", "down", "left", "right", "left", "right"))
#> [1] "⬆️" "⬆️" "⬇️" "⬇️" "⬅️" "➡️" "⬅️" "➡️"