On Fri, Jan 4, 2013 at 12:45 PM, Saptarshi Guha wrote:
> Hello,
>
> How would i use bquote to create names for a list.
>
You don't.
-- Bert
(If you wish to ask how to change names in a list, or some other such
thing, then ask that.)
> e.g. to create list(a=10)
>
> bquote(list(.(X)=10), list(
Hello,
How would i use bquote to create names for a list.
e.g. to create list(a=10)
bquote(list(.(X)=10), list(X="a"))
does not work.
The best i could come up with is
bquote({ a=list(10);names(a)=.(X); a}, list(X="a"))
which is quite ugly.
Is there an elegant way to solve this?
Regards
Sa
2 matches
Mail list logo