[R] Replacing double-quote with backtick

Gundala Viswanath gundalav at gmail.com
Wed Aug 6 06:47:13 CEST 2008


Hi,

How can I change the back quoted strings below

> print(x)
[1] "foo"
[1] "bar"


into

[1]`foo`
[2]`bar`

Because later I want to access a named list
with this string:

mylist$`foo`
mylist$`bar`

I can't do it with:

mylist$"foo"
mylist$"bar"


- Gundala Viswanath
Jakarta - Indonesia



More information about the R-help mailing list