Hello, I'm very new to R and I'm having some trouble with the following:
I currently have a plot of disease against year, and after the year 1980 a the trend changes. I'm trying to split the data into two data sets, one being before the change (1950-1980) and after the change (1981-2000) so that I can plot the data before this year and run a linear model from it.
How would I write the code for this? I'm struggling mainly because I don't know how to split my data between these 2 dates.
Thank you very much for your time in advance.