I would like to convert the a string like be33szfuhm100060 into BESZFUHM0060.
In order to replace the small letters with capital letters I\'ve so far used the gsub f
You can use substring to remove the third and fourth elements.
substring
x <- "be33szfuhm100060" paste(substring(x, 1, 2), substring(x, 5), sep = "")