Hi,

How can I use a substring match as a condition in a subset command?

Sth like this:

subset(input, field1=="blah1" & field2=="blah2") # but now with substring
match in field2

subset(input, field1=="blah1" & field3 *substringmatch* "blah3")

I've tried with gsub, but it won't work:

subset(input, field1=="blah1" & gsub("blah3","",input$field3))

	[[alternative HTML version deleted]]

