I have several concatenated values on one row. For example,
ID Country Language
1 Ireland "English", "French"
2 India "Indian (Hindi)", "English"
3 Cyprus "Greek", "Turkish"
4 Canada "English", "French"
For the strings in the Language column, where besides other values the value "English" is found, I should leave only "English" value.
I want to obtain a such dataset:
ID Country Language
1 Ireland "English"
2 India "English"
3 Cyprus "Greek", "Turkish"
4 Canada "English"
How can I do this with data.table package?