Skip to content
Prev 386332 / 398498 Next

How to pass a character string with a hyphen

tmp <- function(s) {
  return(str(s))
}
key <- "xxxx-yyyy"
tmp(key)

#  chr "xxxx-yyyy"

... works for me.

Reprex?

Cheers,
Boris