Re: [R] Data Frame Indexing

2011-08-22 Thread jim holtman
The problem is that the way you are using "*apply", there are individual calls to the function for each item. In the direct indexing, you are only making a single call with a vector of values; Here is a illustration that shows the number of calls: > # count the calls > f.test <- function(x) callC

[R] Data Frame Indexing

2011-08-22 Thread Jesse Brown
Hello, I've been dealing with a set of values that contain time stamps and part of my summary needs to look at just weekend data. In trying to limit the data I've found a large difference in performance in the way I index a data frame. I've constructed a minimal example here to try to explain