search for: tp3800683p3800779

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

2011 Sep 09
2
Passing in Condtions into Object
Hello, I am trying to pass a conditional expression into an expression to be evaluated when ever an R statement is called. For example: get_unique_count <- function(df, select, field){ uniqs <- unique(subset(df, select)[field]) return (nrow(uniqs)) } In this case select is a conditional statement year == 1980, and the function would be called in the following manner: