Hi everyone, I have a dataframe with a column called the_geom_OBJECTID which presents a factorial variable.
the_geom_OBJECTID
<fct>
1 POINT (-73.8472005205491 40.89470517661004)
2 POINT (-73.82993910812405 40.87429419303015)
3 POINT (-73.82780644716419 40.88755567735082)
4 POINT (-73.90564259591689 40.895437426903875)
5 POINT (-73.91258546108577 40.89083449389134)
6 POINT (-73.90281798724611 40.88168737120525)
I would like to replace the column of this data frame with two columns, one for longitude and another for latitude
expected output:
longitude latitude
<dbl> <dbl>
1 -73.8472005205491 40.89470517661004
2 -73.82993910812405 40.87429419303015
3 -73.82780644716419 40.88755567735082
4 -73.90564259591689 40.895437426903875
5 -73.91258546108577 40.89083449389134
6 -73.90281798724611 40.88168737120525
would it be better to transform the variable into a string format to then create the two new columns?