Skip to content

sample

1 message · Liaw, Andy

#
Others have pointed out `paste' for constructing the file names.  What I'd
like to suggest is `cleaning up' the code a bit.  Assuming func1, ..., func9
all return a single number, so that each tapply() call returns a vector, you
can try something like:
[1] 0.4264803 0.5438598 0.4639551

(You obviously need to work out the details to make sure this fits the data
structure you have.)

This is sort of taking the `whole object' approach.  You can take it one
step further by using replicate() instead of explicit for loop to repeat the
1000 times...

Andy