Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 204922

Replacing commas to periods in all colums in R

$
0
0

I am trying to write a function to change the numbers in a column so that the ',' is a '.'

I want to then convert that column into a double.

For example, here is some data to copy/paste:

df <- data.frame(a=c("1,1", "2,2"))

Viewing all articles
Browse latest Browse all 204922

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>