[R] Replacing double-quote with backtick
Uwe Ligges
ligges at statistik.tu-dortmund.de
Wed Aug 6 09:21:58 CEST 2008
Gundala Viswanath wrote:
> 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"
>
In fact you want to use
mylist[["foo"]]
Uwe Ligges
>
> - Gundala Viswanath
> Jakarta - Indonesia
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list