Displaying 1 result from an estimated 1 matches for "indivividual".
2002 Feb 08
1
looping through lists...
...whole group of lists with things like this:
nw.1$cond (a string)
nw.1$RL (a vector of 10 values)
nw.1$IL (a vector of 10 values)
and I have lots of these lists:
nw.201
nw.202
nw.203
...
what I'd like to do is be able to get specific values from all these
lists (like the mean of $RL) for each indivividual list. I can
certainly do this manually
mean(c(nw.201.1$RL,nw.204.1$RL,nw.206.1$RL)) to get the overall mean
or write some simple code to return a vector of means:
[1] 15.630 2.713 18.811
(the problem with my current function is that I have to hard code the
individual list names which is what I...