[R] How to pass a character string with a hyphen

Jeff Reichman re|chm@nj @end|ng |rom @bcg|ob@|@net
Tue Nov 17 21:43:08 CET 2020



How does one pass a character string containing a hyphen? I have a function
that accesses an api if I hard code the object, for example


key_key <- "xxxx-yyyy" 


it works but when I pass the key  code to the function (say something like
key_code <- code_input)  it returns only xxxx. So R is seeing a string with
a negative operator I'm assuming



	[[alternative HTML version deleted]]

More information about the R-help mailing list