Displaying 1 result from an estimated 1 matches for "fitness_data".
2009 Oct 22
1
tapply with multiple arguments that are not part of the same data frame
Hi all,
I would like to invoke a function that takes multiple arguments (some of
which are specified columns in the data frame, and others that are
independent of the data frame) on split parts of a data frame, how do I do
this?
For example, let's say I have a data frame
>fitness_data
name height weight country
rob 5.8 200 usa
nancy 5.5 140 germany
jen 5.6 150 usa
clark 5.10 210 germany
matt 5.9 280 canada
ralph 6 270 canada
...
...
Now let us say I have a function, my_func(h, w, n...