id first middle last Age 1 Carol Jenny Smith 15 2 Sarah Carol Roberts 20 3 Josh David Richardson 22
I am t
A solution using apply family
apply
df$Carol = lapply(1:nrow(df), function(x) any(df[x,]=="Carol))