r-novice-inflammation icon indicating copy to clipboard operation
r-novice-inflammation copied to clipboard

Replace the inflammation dataset with a dataset in long format that has column names

Open dmcglinn opened this issue 5 months ago • 2 comments

How could the content be improved?

Hey I love the lesson and use it every time I teach R; however, from a pedagogical perspective the inflammation dataset is just strangely structured (wide format without column names) and so the code used to read it in (e.g., read.csv(..., header = FALSE), and then to work with it graphically (plot(1:length(...), ) doesn't set the students up to be able to generalize their knowledge to a more standard data structure that they also want to read in and graph. Just wanted to pass that along (as I correct my students's coding errors :P) if there is every a rehashing of this content - switch to a more commonly encountered data structure. Thanks for all the hard work.

Which part of the content does your suggestion apply to?

Reading and plotting the data.

dmcglinn avatar Jan 25 '24 03:01 dmcglinn