I have the following data frame dat :
brand (column name) Channel clothes Gucci perfume Channel shoes LV purses LV scarves
And I want to cr
We can use the word from stringr
word
stringr
library(stringr) word(df$brand, 1) #[1] "Channel" "Gucci" "Channel" "LV" "LV"