[R] Predict

Ahmed Attia ahmedatia80 at gmail.com
Fri Jun 30 15:27:05 CEST 2017

Hi folks,

I have 25 stand height observations over 7 years period and daily
leafbiomass data during this period. I want to use the 25 plant height
observations as inputs and predict the daily stand height during the 7

SH=matrix(data=NA , nrow = 2641, ncol = 1)
for (i in 1:2641) {
  SH<- predict(lm(height~Date, data=Stand_Height));



The SH output is the prediction of Stand height in 25 observations
only and provides NA for the remaining 2616 iterations.

Thanks for your help.

Ahmed Attia, Ph.D.
Agronomist & Soil Scientist

More information about the R-help mailing list