I have a column like this: (I am using lubridate
)
The S.D
is a difference between order and ship date. It is gotten this way:
mutate(S.D = mdy(Ship.Date) - mdy(Order.Date))
S.D
<time>
2 days
4 days
5 days
...
I want to convert it to:
S.D
<int>
2
4
5
...
How do I do that?