hello, I am having trouble with a code as everything is fine until I find there is nothing happening when I want to fix the name of a country column for my data.
I have done the following and has worked:
# Load "oil consumption per capita" dataset from CSV. oil_consumption_per_cap <- read_csv("oil_consumption_per_cap.csv")
# View first few lines head(oil_consumption_per_cap)
this is where I got the problem:
# Fix name of country column colnames(oil_consumption_per_cap) <- "country"
and nothing happens to my data to appear that it has been adjusted. please help