I have people's weight data (Kg) but some of them were entered mistakenly without decimal. for example, 42.600 is 42600 0r 52.700 is 52700
I want all numbers with three decimal places.
can anyone help me with how to do this?
What format is your data in? Just divide by 1000 if they are over something like 150kg. You should provide a reproducible example.
Something like:
weight_corrected <- ifelse(weight > 500, weight/1000, weight)
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.