search for: delchar

Displaying 1 result from an estimated 1 matches for "delchar".

Did you mean: delchars
2010 Dec 14
2
How to left or right truncate a character string?
Hi R-helpers, I have a character string, for example: "lm(y ~ X2 + X3 + X4)" from which I would like to strip off the leading and trailing quotation marks resulting in this: lm(y ~ X2 + X3 + X4) I have tried using gsub() but I can't figure out how to specify the quotation mark using a regular expression. Alternatively, I would like a function that lets me delete the leading