Not sure if I’ve posted the right question for what I’m actually asking but here it is. I am trying to print the maximum and minimum rainfall from the sumofrain vector along with the corresponding year from the yearly vector.
Just to make it clear if the maximum rainfall in the sumofrain vector was the 7th value in the vector then the year I would like being output is the 7th value in the yearly vector ect.