Apply an operation to a vector or a matrix
for panel data.
Usage
papply(x, ...)
## S3 method for class 'pserie':
papply(x,func,effect="individual", ...)
## S3 method for class 'matrix':
papply(x,func,cond, ...)
## S3 method for class 'default':
papply(x,func,cond, ...)
Arguments
x
a numeric vector or matrix,
func
the function to apply to x,
cond
a vector containing the conditional variable,
effect
the effect for the papply transformation (one of
individual or time),
...
further arguments.
Value
a vector (or a matrix) of the same dimension as the first argument.