I would like to have a function which calls subset, and passes on a subset argument:
subset
df <- data.frame(abc=c(\"A\",\"A\",\"B\",\"
The A5C1D2H2I1M1N2O1R2T1 answer works, but you can skip the whole deparse/parse cycle by simply using:
mysubset <- function(df, p) { ps <- substitute(p) subset(df, eval(ps)) }