This may be a silly question, but its doing my head in. I have always used gsub, but for some reason, it isnt working for this one:
Example of dataset
ColumnS
I 2,[3],4:i:-
I 2,[3],4:i:-
I 2,[3],4:b:-
Give
Derby
Panama
Kentucky
This is what I've been trying
dataset$ColumnS<-gsub("I 2,[3],4","2,[3],4", dataset$ColumnS)
What is wrong with it?