Skip to content
Prev 305766 / 398506 Next

[newbie] aggregating table() results and simplifying code with loop

Hello,
Em 18-09-2012 15:29, John Kane escreveu:
Thanks!
As for lapply, if you understand apply you'll understand lapply. With 
some differences, the principle is the same.
I've tried to keep each function simple, but it can become complicated 
to follow the call tree down to f1.
Yes, or at least it's supposed to. And I've kept in separate list 
elements precisely to have simplified access to each combination of Crop 
and Period.
(Condition 19, the last one, comes first because split sorts its output 
by list element name, and 'crop' is the first.)

Rui Barradas