Converting kg to lb in a dataset
I have a dataset that looks like this:
df <- data.frame(weight = c(200, 150, 55, 65, 110), unit = c(1, 1, 2, 2, 1))
1 is pounds 2 is kg
Is there a code that converts only kg weights to pounds?
from Recent Questions - Stack Overflow https://ift.tt/3f3xpau
https://ift.tt/eA8V8J
Comments
Post a Comment