I'm trying to create SpatialPoints objetcs from data frame on R
natFPV <- SpatialPointsDataFrame(coords = coordinates(natFPv.per_data[,c(27,28)]),data = natFPv.per_data[,-c(27,28)]) natFPV <- SpatialPoints(coords = coordinates(natFPv.per_data[,c(27,28)]))
But getting the error for both:
Warning: Error in SpatialPoints: could not find function "SpatialPoints"
I'm really don't konw how to deal it.