search for: wappaly

Displaying 1 result from an estimated 1 matches for "wappaly".

Did you mean: apply
2001 Oct 28
2
extract element, row, etc from general array structure
...difying it to suit my own ends. wapply() takes a vector, and repeatedly applies a function FUNC (decided at run-time) to windows of the data. The modification I've made is to generalize the return structures - if a scalar is returned by FUNC, wapply returns a vector. If FUNC gives a vector, wappaly returns a matrix. etc... A complementary function I'm trying to build is one that extracts the results of FUNC for window N. As I see it, the logic would be something like this: if: foo<-wapply(some.time.series, some.vector.returning.function) foo is a matrix. The "extract&quot...