Displaying 1 result from an estimated 1 matches for "distratio".
2011 Sep 15
1
Problems with aggregate() function in stats package
Hi,
I'm having some problems with the aggregate() function in the {stats}
package, and the documentation doesn't address them.
1) Why would the first line work, but the second not? According to the
help file, it accepts a "data=" argument.
> with(tsrc, aggregate(x=DistRatio, by=list(Condition), FUN=mean))
Group.1 x
1 Congruent 1.741789
2 Mismatch 1.771425
> aggregate(x=DistRatio, by=list(Condition), data=tsrc, FUN=mean)
Error in aggregate(x = DistRatio, by = list(Condition), data = tsrc, FUN = mean) :
object 'DistRatio' not found
2) The...