1

While using the mapPoints function in R, I am facing an error(PFA).

loc <- readOGR("G:/Mphil Dissertation/Data/Shape File/IAGE71FL/IAGE71FL.shp", verbose = FALSE)
loc.dat <- data.frame(cluster = loc$DHSCLUST, long = loc$LONGNUM, lat = loc$LATNUM)

gps <- mapPoints(loc.dat, geo= geo, long = "long", lat = "lat", names = c("REGNAME"))

Error in [.data.frame(new, , names, drop = FALSE) : undefined columns selected

4

0 回答 0