A Primer for Spatial Econometrics: With Applications in R