[R] How to pass a character string with a hyphen
    Boris Steipe 
    bor|@@@te|pe @end|ng |rom utoronto@c@
       
    Tue Nov 17 22:00:07 CET 2020
    
    
  
tmp <- function(s) {
  return(str(s))
}
key <- "xxxx-yyyy"
tmp(key)
#  chr "xxxx-yyyy"
... works for me.
Reprex?
Cheers,
Boris
    
    
More information about the R-help
mailing list