DisplayTreatment() fails if the data is a tibble rather than a dataframe (see below). This is because of the different indexing behavior of tibbles compared to dataframes. Given the popularity of the tidyverse, it might be worthwhile to add an informative error message if someone passes a tibble rather than a dataframe.
Greetings.
DisplayTreatment()
fails if the data is a tibble rather than a dataframe (see below). This is because of the different indexing behavior of tibbles compared to dataframes. Given the popularity of the tidyverse, it might be worthwhile to add an informative error message if someone passes a tibble rather than a dataframe.