The years in the Year column have Xs in front of them. I would like to get rid of these, using the “factor” function and set the labels. How can i do this please?
The reason why i do this is to make my graph look prettier.
The years in the Year column have Xs in front of them. I would like to get rid of these, using the “factor” function and set the labels. How can i do this please?
The reason why i do this is to make my graph look prettier.
Using str_sub to strip out the X, and factor to set the levels. I suspect that you will be happy without setting labels, in which case, just delete
labels = "First Year"