I would like to remove the last 4 characters for the column "Name" for every row. This is what I have tried.
hof_pitching.final[, Name := substring(hof_pitching.final$Name, 0, (length(hof_pitching.final$Name) - 4))]
Any help would be appreciated.