stat545ubc-2020 / collaborative-helium

collaborative-helium created by GitHub Classroom
0 stars 0 forks source link

Error 4 fixed #30

Closed berudri closed 4 years ago

berudri commented 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")
Tomiyosi-Bola commented 4 years ago

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