I have one column "x" that has a bunch of terms. The terms are all different (EX. 123_pro, 125_pro, 948_pro), however, they all have the same "_pro" suffix. How can I get rid of the "_pro" suffix from all the terms that exist within this single column so that it just become 123, 125, 948, etc. I've included a dput.
> dput(table)
structure(list(X = c("128_pro", "123_pro", "234_pro", "938_pro",
"122_pro", "232_pro", "111_pro", "092_pro", "099_pro")), class = c("spec_tbl_df",
"tbl_df", "tbl", "data.frame"), row.names = c(NA, -9L), spec = structure(list(
cols = list(X = structure(list(), class = c("collector_character",
"collector"))), default = structure(list(), class = c("collector_guess",
"collector")), skip = 1), class = "col_spec"))