I have a character Vector called make in my dataframe Output:
make <- c("AUDI", "HUSQVARNA","SYM","LEXMOTO","LDV","APOLLO","AUDI R8 SPYDER QUATTRO V10", "MITSUBISHI FUSO","JEEP GRAND CHEROKEE LIMITED CRD A")
I want to create another vector in my data frame, Output$model that includes those characters after the "AUDI" e.g.
make model
AUDI R8 SPYDER QUATTRO V10
I know that I can separate the strings like this:
Output$model <- gsub(".* ", '', output$make)
But how would I do it so it only does this for strings that include "AUDI" Thanks !!