I want to subset a data Frame. Most time one reduces an original data frame by keeping observations which fulfil certain conditions in its variables and dropping the rest.
A working code is:
Companies.Exchanges.1 <- subset(Companies.Exchanges.0,
(Frankfurt == 1 & London == 1))
I want to do it the other way round: Dropping all observations which fulfil certain conditions and keeping the rest - which violates at last one condition - in a new data frame.
How do I have to reformulate the above code to do this this?
Frankfurt != 1 & London != 1
?!(Frankfurt == 1 & London == 1)
or equivalentlyFrankfurt != 1 | London != 1