[R] Get object name inside lapply

Mohammad Tanvir Ahamed mashranga at yahoo.com
Thu Feb 25 22:27:31 CET 2016


I want to get object name of a list inside lapply 

> c<-list(a=seq(1:5),b=seq(10:20)) 
> lapply(c,names) 


Why NULL ? 

but i am expecting the names of object . Any help will be appreciated . 

I want to grab the names of object inside lapply for further process. 

Thanks . 

Tanvir Ahamed 
Göteborg, Sweden  |  mashranga at yahoo.com

More information about the R-help mailing list