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

Suggestion - Print Statement after Data Frame Manipulation functions

Open sndaba opened this issue 2 years ago • 0 comments

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

sndaba avatar Jul 06 '22 05:07 sndaba