[enter image description here][1]
$ latitude : Factor w/ 2 levels "43.0678901152949",..: 1 1 1
$ longitude: Factor w/ 2 levels "-76.1734713936105",..: 1 1 1
current data type is factor, but I want to change them to Numeric, so I use
no3$latitude <- as.numeric(no3$latitude)
no3$longitude <- as.numeric(no3$longitude)
1.I use "as.numeric" in r, to change the data type, but it doesn't work
it becomes to
[enter image description here][2]
$ latitude : num 1 1 1 1 1 1 1 1 1 1 ...
$ longitude: num 1 1 1 1 1 1 1 1 1 1 ...
[1]: https://i.stack.imgur.com/HMj9C.png
[2]: https://i.stack.imgur.com/egcsx.png