fhdsl / DaSEH

🌼 Collection of materials to accompany the R25 funded "Data Science for Environmental Health" short course
https://daseh.org
MIT License
0 stars 1 forks source link

homework 2 greater than or equal to #122

Closed franznat closed 3 months ago

franznat commented 3 months ago

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.

  1. 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?

    nrow(mars %>% filter(max_ground_temp >= 0))

    [1] 218

carriewright11 commented 3 months ago

thank you!!

carriewright11 commented 3 months ago

This is done