this is my string:
x <- "NINSGSMN019VLKM6NINSGSMN05ZISGPBNINSGSMN04K36312NINSGSMN07AQ74H6NINSGSMN08LVCE18NINSGMDN0E57CIF6"
I want to change it to
"NINSGSMN019VLKM6"
"NINSGSMN05ZISGPB"
"NINSGSMN04K36312"
"NINSGSMN07AQ74H6"
"NINSGSMN08LVCE18"
"NINSGMDN0E57CIF6"
so i was intending to use gsub to replace 'NINGSG' with ' NINGSG' and then use strsplit to split it by the spacebar. However I can't even do the sub.
x <- gsub("NINGSG", " NINGSG", x, ignore.case = TRUE)
just returns me the exact same input