Hello,

Without correcting your code, it's obvious that the expressions like leafbiom97$Date == "i" and all others with"i" and "i - 1" are wrong.
leafbiom97$Date is of class Date, not character. And, besides,
for(i in ...) makes of i a numeric variable that has nothing to do with "i". This "i" will remain the character string "i" for all iterations of the loop.

Hope this helps,

Rui Barradas

Em 22-06-2017 17:50, Ahmed Attia escreveu:
leafbiom97$Date == "i"

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to