add_column(MIPSGroup = str_extract(.$Dil_Plate_Name, "[:alnum:]+_([[:alnum:]&&[^P]]+(_CL)?)?|(KORgex)), .after="Dil_Plate_Name")
I cannot seem to get the add_column command to work inside Exploratory, although this works in R:
mips.group <- str_extract(mips.manifest$`Dil plate name`,
"[:alnum:]+_([[:alnum:]&&[^P]]+(_CL)?)?|(KORgex)")
mips.manifest %<>%
add_column(MIPSGroup=mips.group, .after="Dil_Plate_Name")
What am I doing wrong? Thanks!