Displaying 1 result from an estimated 1 matches for "score_function".
2008 Jun 17
1
re sultant column names from reshape::cast, with a fun.aggregate vector
...e_length
1 1 0.08788535 8
2 2 0.16720313 15
3 3 0.41046299 7
4 4 0.13928356 13
...
but now try this:
cast(scores.melt, grade ~ variable, fun.aggregate = c(mean, function(x)
sum(x < 0)))
and you get a huge mess:
grade score_mean score_function.x..sum.x...0.
1 1 0.08788535 4
2 2 0.16720313 6
3 3 0.41046299 2
4 4 0.13928356 5
I would think that something like this would fix it up, but no dice:
cast(scores.melt,...