[R] Apply a loop containing a function on a list

Milan Bouchet-Valat nalimilan at club.fr
Wed Mar 14 12:03:35 CET 2012


Le mercredi 14 mars 2012 à 00:51 -0700, ali_protocol a écrit :
> Hi all,
> I want to do this:
> 	
> 	B.list$aa= (a loop containing My.fun acting on the reults of second
> function on a A.list$aa))
> or, overally 		
> 	B.list$aa = function (A.list$aa)
> B.list and A.list has many sublists aa, ab and.... Is there a way I can
> apply the function and loop on all sublists of A.list and get B.list?
Please provide a small example, you can easily create two lists to
illustrate your point. It's hard to help without that, it would require
us mocking up an example for you, and we might get it wrong.


Cheers



More information about the R-help mailing list