Its possible to create a function taking a "logical expression" argument as the subset function does?
For instance, something like this working:
x <- function(d, s)
{
# ...
return(subset(d, s))
}
Where d
is a data.frame and s
is a R logical expression