This is FAQ 7.21 The most important part of that answer is the last few lines where it says in effect "Don't Do This" and shows the basics of using a list instead.
On Mon, Apr 29, 2013 at 5:07 AM, Rui Esteves <ruimax...@gmail.com> wrote: > Hello, > > This is very basic and very frustrating. > > Suppose this: > >A=5 > >B=5 > >C=10 > > > ls() > "A" > "B" > "C" > > I would like this > >xpto() > 5 > 5 > 10 > > How can I do xpto()? > > Thanks > Rui > > [[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. > -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com [[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.