My students are learning tidyverse (dplyr) functions, and they used a script I shared with them in RStudio Cloud (working in their own copy).
For one of my students something peculiar is going on: after using tidyverse functions, the results are still data frames. Using
as_tibble()
also gets completely ignored, still returning a data frame.
All relevant libraries are loaded, and tidyverse functions work as expected for the rest. This is code they got from me, and it worked/works fine in my original project.
I'm stumped on how this can happen?
Ah - as I was double checking the student's code, I realized they had changed read_csv() to read.csv(). Then when they applied filter, select and arrange the data frame stayed a data frame of course!