Does R have quote-like operators like Perl’s qw()?

No, but you can write it yourself:

q <- function(...) {
  sapply(match.call()[-1], deparse)
}

And just to show it works:

> q(a, b, c)
[1] "a" "b" "c"

Leave a Comment