I'm new at R and Stackoverflow, first hi, nice to met you all!
I've been trying for a while to fulfill some work but I can't, don't know if some of you could help me at this point anything is more than accepted. I tried but I keep getting nothing, for like 5h. I'm not that good at R looks like.
Thank you in advance!
This is the question:
- Create the new variable 'decade' from the variable year with the categories "1960s", "1970s", etc. (Remember to use case_when). Look at the sum of the GDP of the countries in the region for each decade with a bar chart.
I have to use this database
install.packages("dslabs")
library(dslabs)
gap <- tibble(dslabs::gapminder)
and this filter
g <- gap %>%
filter(region %in% c("South America", "Central America", "Northern America", "caribbean", "Polynesia"))
Anything is welcome, really