Instruction: Describe the process of conducting advanced spatial data analysis in R, including working with raster and vector data.
Context: This question evaluates the candidate's knowledge of spatial analysis techniques and their application in R for dealing with geospatial data.