Displaying 1 result from an estimated 1 matches for "tp4303936p4304535".
2012 Jan 17
2
Using Aggregate() with FUN arguments, which require more than one input variables
Dear all,
I am trying to apply the aggregate() function to calculate correlations for
subsets of a dataframe. My argument x is supposed to consist of 2 numerical
vectors, which represent x and y for the cor() function.
The following error results when calling the aggregate function: Error in
FUN(X[[1L]], ...) : supply both 'x' and 'y' or a matrix-like 'x'. I think
the