Skip to content
Prev 169904 / 398506 Next

Odp: Problem with retrieving updated variables after attach()

G'day David,

On Tue, 10 Feb 2009 13:23:50 +0100
David Croll <david.croll at gmx.ch> wrote:

            
R> new.df <- data.frame(id,age)

Or, perhaps more automatic:

R> new.df <- do.call(data.frame, sapply(ls(pos=2), as.name))

Is this what you are after?

Cheers,

	Berwin

=========================== Full address =============================
Berwin A Turlach                            Tel.: +65 6516 4416 (secr)
Dept of Statistics and Applied Probability        +65 6516 6650 (self)
Faculty of Science                          FAX : +65 6872 3919       
National University of Singapore     
6 Science Drive 2, Blk S16, Level 7          e-mail: statba at nus.edu.sg
Singapore 117546                    http://www.stat.nus.edu.sg/~statba