I have a column called coordinates that a dataframe of latitude and longitude coordinates for each address. I want to split column into two columns called lat and long rather one column called coordinates
I have the following data:
vsn address coordinates
53 079 Ashland Ave & Elston Ave Chicago IL -87.66826, 41.91873
76 097 Pulaski Rd & 71st St Chicago IL -87.72242, 41.76412
84 0A3 Long Ave & Lawrence Ave Chicago IL -87.76257, 41.96759
the coordinates column contains a list I need the data to transform into the following:
vsn address Lat Lon
53 079 Ashland Ave & Elston Ave Chicago IL -87.66826 41.91873
76 097 Pulaski Rd & 71st St Chicago IL -87.72242 41.76412
84 0A3 Long Ave & Lawrence Ave Chicago IL -87.76257 41.96759
I dont know how to extract the data because its a data frame specifically what is shown below
The type of the column coordinates is shown below:
ouput of dput(data$coordinates)
structure(list(coordinates = list(c(-87.668257, 41.918733), c(-87.72242,
41.764122), c(-87.76257, 41.96759))), row.names = c(53L, 76L,
84L), class = "data.frame")