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

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 211004

Latest Images

Trending Articles



Latest Images