Displaying 1 result from an estimated 1 matches for "chingfu".
Did you mean:
ching
2012 Apr 17
1
Function with multiple indices
...lesi <- x$SALES[i]
med <- median(x$SALES[-i])
print (salesi - med)
}
}
perf(GROUP11)
# Why the above funtion doesn't work in the following?
tapply(x1$SALES, list(x1$YEAR, x1$GROUP), perf)
aggregate(x1$SALES, by=list(x1$YEAR, x1$GROUP),FUN=perf)
Thanks!
Chingfu Chang