[R] predicting without a model
bolker at ufl.edu
Tue May 11 21:11:00 CEST 2010
Felipe Carrillo <mazatlanmexico <at> yahoo.com> writes:
In the absence of any other information, I would say your
best bet would just be to take the weekly average across the
previous years. There are lots of ways to do this (tapply,
aggregate, etc.), but cast() works:
fallavg <- cast(fallmelt,value="value",WEEK~.,fun.aggregate=mean,
names(fallavg) <- "value"
fallavg$variable <- "predicted"
opts(title="Fall Cumulative") +
labs(y="Number of fish X 1,000",x="WEEK")+
More information about the R-help