I have a dataframe which includes the factor column "Year".
The observations in "Year" looks like this:
y1995
y1995
y1997
y1997
y1999
y2007
y1995
etc
I want to eventually convert "Year" into class integer. First, however, I need to drop the "y" from each observations, so that the data takes the form:
1995
1995
1997
1997
1999
2007
1995
etc
The years are all in the interval y1995-y2007.
How would I do this?