extracting city and state information from a google street address
问题 I have a data set that contained lat/long information for different point locations, and I would like to know which city and state are associated with each point. Following this example I used the revgeocode function from ggmap to obtain a street address for each location, producing the data frame below: df <- structure(list(PointID = c(1787L, 2805L, 3025L, 3027L, 3028L, 3029L, 3030L, 3031L, 3033L), Latitude = c(38.36648102, 36.19548585, 43.419774, 43.437222, 43.454722, 43.452643, 43.411949,