[R] Odp: Problem with retrieving updated variables after attach()

David Croll david.croll at gmx.ch
Tue Feb 10 15:38:29 CET 2009


Thank you, this does the job perfectly!


Regards, David

> 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




More information about the R-help mailing list