Closed berudri closed 4 years ago
We want to calculate how many hours it has been since the first landing on the moon, until today.
Before
# ERROR HERE - 4 date_landing <- mdy("July 20, 1969") difftime(today(), date_landing, units = "days")
After
# ERROR HERE - 4 date_landing <- mdy("July 20, 1969") difftime(today(), date_landing, units = "hours")
Here the question asked us to find the number of "hours" since the first landing on the moon. Therefore, we changed the days to hours
We want to calculate how many hours it has been since the first landing on the moon, until today.
Before
After