Either the question should be rephrased or the code should be changed - it asks about days above 0 degrees but the answer includes temps at 0 degrees. There are 218 days at or above but only 159 above.
How many data points are from days where the maximum ground temperature got above 0 degrees Celsius? What percent/proportion do these represent? Use:
filter() and nrow()
group_by() and summarize() or
sum()
How many data points are from days where the maximum ground temperature got above 0 degrees Celsius?
Either the question should be rephrased or the code should be changed - it asks about days above 0 degrees but the answer includes temps at 0 degrees. There are 218 days at or above but only 159 above.