r-novice-inflammation
r-novice-inflammation copied to clipboard
Suggestion - Print Statement after Data Frame Manipulation functions
Hi
I noticed that the functions used in the Data Frame Manipulation with Dplyr episode https://swcarpentry.github.io/r-novice-gapminder/13-dplyr/index.html do not have a print ( ) statement for the output of the dplyr functions.
I suggest adding the print statement for every Dplyr function for learners to follow the different outputs every function creates. For example, the following function from the episode can have the following printing statement after the select( ) statement; year_country_gdp <- select(gapminder, year, country, gdpPercap) print(year_country_gdp)
or
year_country_gdp <- select(gapminder, year, country, gdpPercap) year_country_gdp