I have a data frame with > 2000 features. Categorical, numerical and logical types.
The constraint for further processing is that the Numerical features should not have any value < 0. However, these are present in the set.
I would like to now a way how to remove all examples (rows) from the underlying data set where at least one numerical feature is negative.
Already tried it this way apply(df, 1, function(x) any(as.numeric(x) <0))
However, this convert my categorical features to NaN.