Some basic R scripts for forecasting, data mining and analysis