On Fri, Jan 4, 2013 at 12:45 PM, Saptarshi Guha <saptarshi.g...@gmail.com>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(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 > Saptarshi > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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. > -- Bert Gunter Genentech Nonclinical Biostatistics Internal Contact Info: Phone: 467-7374 Website: http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm [[alternative HTML version deleted]] ______________________________________________ R-help@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.