I would like to extract three letters of each string for each row in df as below
Exampe:
df <- data.frame(name = c('Jame Bond', "Maria Taylor", "Micheal Balack"))
df
name
1 Jame Bond
2 Maria Taylor
3 Micheal Balack
desired out
df_new
name
1 Jam_Bon
2 Mar_Tay
3 Mic_Bal
Any sugesstions for this using tidyverse?