Thanks for your reply, i did get the following message , i quess i need to find an OECD package that is available with this version of R, or just re-install an older version of R?
Warning message:
package ‘OECD’ was built under R version 4.1.3
That is just a warning, but the OECD package doesn't seem to have an OECD() function. Can you clarify why you think it should? Maybe you are supposed to be using a different package.
Im sorry andreas, but i don't understand the language of code. As far as i can tell "HISTPOP" is code for data from the OECD on population age structures. I want to subset this data to specific country and create a histogram. So installed the OECD package, ran the library, and am now trying to get the data connected to "HISPOP"
install.packages("OECD")
library("OECD")
OECD_data <- OECD(country = "all",
indicator = c("agestructures" = "HISTPOP"),
start = 2000, end = 2020, extra = TRUE
I can only infer from context that is the number of people in each age group for a given country and year, although, you should check the OECD web site to find out for sure.
Sorry, I don't understand what you are referring to.
You can read about data visualization from this free ebook, so you can learn how to modify the code to your liking.
Thanks Andres, ill have a look through this, unfortunately because i dont understand the lanaguage, i dont understand what im looking for which it makes it extra hard