search for: spliton

Displaying 1 result from an estimated 1 matches for "spliton".

Did you mean: soliton
2010 May 17
0
pass names from dataframe as arguments
...uments. I know it is done in functions like lm(), but I haven't been able to figure out how unless I attach the dataframe first or wrap the names in expression() so they are not evaluated immediately. How can I get around this? For instance, here is a simple function: myfun <- function(x, spliton, conditional, outcome, prob, above, ...) { cutoff <- quantile(x=x[,paste(spliton)], probs=prob, ...) ifelse(isTRUE(above), data.sub <- subset(x=x, subset=(eval(spliton) >= cutoff) & eval(conditional), select=eval(outcome)), data.sub <- subset(x=x, subset=(eval(...