how can i transform the first data frame into the second with regex expressions or any other way
df <- data.frame (element = c("Autres produits d'exploitation 918,306"),V2 = c("2"), V3=c("676")
)
newdf <- data.frame (element = c("Autres produits d'exploitation"),V2 = c("2 676 918,306")
)
Created on 2021-05-16 by the reprex package (v1.0.0.9002)