sample_df<-
Product Code Remark
12200234 Done
12200234 Done
12200205 Error
12200256 Error,Pending
12200126 Error,Hold
How I can replace those value which contains text as Error in Remarks column to NA.
OP
Product Code Remark
12200234 Done
12200234 Done
12200205 NA
12200256 NA
12200126 NA