0
In R I want to make a new based on text with numbers. But I want to do this based on a specific part of the text.
For example when the text is like
- search | Location | Value
- search | Radius | Value
I want to make a new column with value 0 for every part of text which contains location.
I know that I can code this in columns with
ffclean$Campaign2[ffclean$Campaign=="Search | location| value"]<-0
But does somebody know how to code this when you only looking for the word location?