Open samanthacsik opened 2 years ago
Thanks @samanthacsik for opening this issue. The lesson underwent a major update and reorganisation when https://github.com/datacarpentry/R-ecology-lesson/pull/887 was merged. Although this issue refers to content in a version of the lesson before that update took place, the overall suggestion may still be relevant.
There's a super cool new browser-based tool called Tidy Data Tutor (and the Pandas version, Pandas Tutor), which lets you visualize how a data frame changes at each step of a data analysis/transformation pipeline. I've found this to be a super helpful teaching tool for workshops where I am introducing the pipe operator,
%>%
for the first time. Tidy Data Tutor will break down each step of your pipeline (i.e. at each%>%
) and show exactly how the data frame is altered in that step. I've created a simple example demonstrating thedplyr
functionsfilter()
,select()
andarrange()
, or see the screenshots below:Step 1: create some data in the browser-based editor (here I created a mini version of the
portal_data_joined.csv
used in this workshop)Step 2: Visualize the data analysis pipeline
It's easy to embed the reproducible pipeline visualization into lesson materials using the "Sharable URL" at the bottom of the page. It is important to note that because this is a super new tool (I think it was released only about two weeks ago), it may still be a little buggy.
Still, I think it could add value to the Data Manipulation using
dyply
andtidyr
episode in the Data Analysis and Visualization in R for Ecologists Data Carpentries workshop (or any workshop where pipes are taught), particularly after the first example of a pipe:One suggestion may be to include language immediately following the text in the screenshot above that states something like: