I have a data frame (Data) and I have created a new column with the first four characters of each vector in a column (Details) using substr.
Here is the code:
Data$Years = substr(Data$Details, 1, 5)
How would I use substr (or another function) to remove the same first four characters from the original (Details) column?