Hoping to get some guidance as only an occasional analyst and couldn't really understand how to manage an expression with a preceding numeric value.
My data below, I am hoping to convert the "4D" and "5D" type of data into "4 Door" and "5 Door".
a <- c("4D Sedan", "5D Wagon")
b <- c("4 Door Sedan", "5 Door Wagon")
dt <- cbind(a,b)
thanks.