This is the column that I would like to modify:
"00640+6.2.1.1; 00680+6.2.1.1; 00720+6.2.1.1;"
Desired output:
00640; 00680; 00720
My idea was to replace "+" with dot, then eliminate all numbers containing dots, is if it was decimals, but it is eliminating everything else apart from the 1st 00640, how to modify it?
tmp <- as.character(tmp)
tmp <- unlist(lapply(strsplit(tmp, split = "\\+"), FUN = paste, collapse = "."))
tmp <- gsub("\\..*", "", tmp)