[R] converting an objects list
Jim Lemon
jim at bitwrit.com.au
Wed May 5 10:53:32 CEST 2010
On 05/05/2010 08:45 AM, Anthony Fristachi wrote:
> Hello,
>
> I would like to convert an objects list such as objects() or ls() that outputs "a101" "a102" "a104" "a107" "a109"
>
> to read within a list statement as follows : list(a101,a102,a104,a107,a109)
>
Hi Tony,
Try this:
x<-1:3
y<-letters[4:7]
z<-factor(c("fl","go","tw"))
result<-sapply(objects(),"get")
Jim
More information about the R-help
mailing list