R script for predicting cyclone maintenance by tracking rate of change