[R] Adding a decimal point at the second mark in R

Jon1985 jonathanreardon at outlook.com
Fri Oct 2 18:26:11 CEST 2015


Using R, I have two columns (onset, duration) containing milliseconds in a
data frame. I want to add a decimal point at the second mark for all data
points in both columns i.e. turning 1541ms into 1.541s AND turning 638ms
into 0.638s.

Could someone tell me how to do this? 

Thanks
Jon



--
View this message in context: http://r.789695.n4.nabble.com/Adding-a-decimal-point-at-the-second-mark-in-R-tp4713069.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list