Closed lwasser closed 8 years ago
@mjones01 this lesson has been updated. please have a look. i'm still concerned it's a bit confusing as is BUT if you think it's clear enough for now. let's close this issue! Al lessons are current now (all RMD files) on the repo! If you want me to push the build up - please let me know.
As long as RMD files are current. We'll rebuild once all edits are done tomorrow/Friday.
Ok - everything is current. Will you please have a look at L06 final challenge when you have a bit of time? It was hard to write in a clear way. One option - rather than having them plot twice - we could have them
I'm inclined to do it this way. Have a look and see what you think.
Broken up into two challenges: first, convert in 2 ways; second, plot.
The goal of this challenge is to use both the base R
and the zoo
package
methods for working with year-month data.
Using the NEON-DS-Met-Time-Series/HARV/FisherTower-Met/hf001-04-monthly-m.csv
file (name = met_monthly_HARV
):
R
and the
zoo
package. Name the new fields date_base
and yearmon
respectively. yearmon
field into a Date class field so it can be used in base
R
, ggplot, etc. HINT: be sure to load the zoo
package, if you have not already.
Using the date data in the Date class from the previous challenge, create a faceted plot of annual air temperature for each year (2001-2015) for the NEON Harvard Forest field site.
(note "date data" in challenge 2 changed to "date field")
Ok please edit as follows below. You never want to use a method or function as a variable or field name. it can cause problems. But also date_base refers to base r. so it makes sense to use date_zoo to be consistent. The first part above though is more significant of a problem for new users.
Please edit:
Using the date data in the Date class from the previous challenge, create a faceted plot of annual air temperature for each year (2001-2015) for the NEON Harvard Forest field site.
CHANGE TO:
Using the date field date_base
that you created in part one of the challenge above, create a
faceted plot of annual air temperature for each year (2001-2015) for the NEON
Harvard Forest field site.
If you'd rather have them use date_zoo that's fine. But the text above was confusing.
Also we haven't been breaking up challenges in terms of having 2 separate ones. We've just been doing part one and part two, etc. More minor of a comment. Thanks!
Addressed in PR #102 Closing issue.
the final challenge reads as follows: This challenge is confusing because for it to work properly - you have to reimport the CSV which has a month-year formatted date column. Then the ZOO (part two of the challenge) code can work. @mjones01 do you know why we did this - this way? Couldn't we just have them create the plot once and use too to format that data using zoo. this is why the code is breaking now?