tladeras’s avatartladeras’s Twitter Archive—№ 3,430

      1. 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?
    1. …in reply to @tladeras
      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).
  1. …in reply to @tladeras
    There's always these weird NSE edge cases...
    1. …in reply to @tladeras
      I had to use debug() inside another debug() session to figure this out. My head hurts now.