I have a logical operator and a numerical value that I want to pass as one element to an operator in a function (I heard hundreds of R users moaning, I never do this, but I have a situation in which I feel normal).
DF <- mtcars overlap = "> 2" as.numeric(rowSums(DF[, 1:6]) overlap)
How to make the third line work like:
as.numeric(rowSums(DF[, 1:6]) > 2)
I know this rather eval and parse , but I never use them, so I donβt understand how to use them here.
source share