Reproducible Example
df <- data.frame("col1" = 1:3, "col2" = c(0.9, '9-', 10))
col1 col2
1 1 0.9
2 2 9-
3 3 10
Expected output
col1 col2
1 1 0.9
2 2 -9
3 3 10
Question
I"m trying to replace all the - in a column and paste it in the front instead. Could anyone show me how to do this? Thank you!