See ?eapply On Thu, Apr 8, 2010 at 5:01 PM, Tengfei Yin <yinteng...@gmail.com> wrote: > Hi > > I want to simplify my problem into a prototype, how to write a function to > get all the object in your current environment, e.g. .GlobalEnv, and print > their mode? > > For example, if I have object a,b,c... in my environment, > a=1;b='test';c=matrix(0,3,3)..... > > I want to write a function myfun(), when I run myfun(), this retrieve all > the objects in my environment automatically and print their mode or class > one by one. > > Thanks > > Regards > > Tengfei > > -- > Tengfei Yin > MCDB PhD student > 1620 Howe Hall, 2274, > Iowa State University > Ames, IA,50011-2274 > Homepage: www.tengfei.name > English Blog: www.tengfei.name/en > Chinese Blog: www.tengfei.name/ch > > [[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. >
-- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O ______________________________________________ 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.