Dear all,
I just started working on R and I would like to know how I can extract specific data from a database.
My database contains the year, the age and the number of death for a specific year and age. My data looks like this :
Year Age Death
1955 0 150
1955 1 132
....
1955 109 0
1955 110 1
1956 0 126
.....
I want to be able to extract the data following a specific group, for example, I want to only keep the data for the age 0 in 1955, the age 1 in 1956, the age 2 in 1957 ... until the age 65 for the year 2020.
Can someone please explain me how I can extract this data ?
I am able to extract an entire year or age but not a specific age for a specific year.
Thank you in advance.