Last chance! 50% off unlimited learning
Sale ends in
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, ...)
x
,papply
transformation (one of
individual
or time
),library(Ecdat)
data(Grunfeld)
pdata.frame(Grunfeld,"firm","year")
papply(Grunfeld$inv,mean)
X <- model.matrix(~value+capital-1,Grunfeld)
papply(X,mean,Grunfeld$firm)
Run the code above in your browser using DataLab