Intermediate and advanced R for spatial data