-
Weird #rstats case. A package we depend on uses subset() and I have to filter rows using it. I had to use eval(substitute(lv)) to get a logical vector lv into subset(), because of the non standard evaluation of subset. Is there a better way of doing this?
-
My other method was a bit kludgey, which was to basically add the logical vector into the data frame (df[["lv"]) and then use subset(df, lv).
-
There's always these weird NSE edge cases...
-
I had to use debug() inside another debug() session to figure this out. My head hurts now.