how do I remove just the ".00" in a data frame column: so that 5.00% /GP per tonne becomes 5% / GP per tonne ? I am trying something like the below but it is saying invalid regexp.
sched$duty_rate <- c("5.00% /GP per tonne","10.00% /GP per tonne")
for(i in 1:nrow(sched)){
sched$duty_rate[i] <- gsub("[.]?[0-9]*(?=%)","\\%",sched$duty_rate[i])
}