A primer for spatial econometrics. With applications in R