Cristina Russo
Cristina Russo

Reputation: 1

how do I parse year column to number in R

Using this data File POP/1-1: Total population (both sexes combined) by region, subregion and country, annually for 1950-2100 (thousands) High Fertility Variant, I have to "parse the year column to a number."

the years range from 2020 to 2100.

I dont know what it means to parse the year to a number pls help

Upvotes: 0

Views: 33

Answers (1)

Gonzalo Falloux Costa
Gonzalo Falloux Costa

Reputation: 372

as.numeric(Year)

replace Year for the name of the column

Upvotes: 1

Related Questions