I want to create a new column based on whether a string is present in a different column of the dataframe.
name
Jon
Anne
Jobraith
Knut
Becomes:
name dummy
Jon 1
Anne 0
Jobraith 1
Knut 0
looking for something along the lines of:
df$dummy <- ifelse('jo' in df$name, 1, 0)