Skip to content
Prev 361808 / 398506 Next

filter a data.frame in dependence of a column value

On Fri, 17 Jun 2016, Matthias Weber <Matthias.Weber at fntsoftware.com> writes:
Try ?grepl instead of %in%.

x <- c("for Mr. Muller (10.0 -> 11.2)",
       "for Mr Giulani",
       "for Mr. Marius (11.2 -> 12)")

grepl("[(].*->.*[)]", x)
Message-ID: <8760t8jhjl.fsf@enricoschumann.net>
In-Reply-To: <HE1PR07MB1212A945302ECCD0C285349090570@HE1PR07MB1212.eurprd07.prod.outlook.com> (Matthias Weber's message of "Fri, 17 Jun 2016 07:49:42 +0000")