Skip to content
Prev 168279 / 398502 Next

name scoping within dataframe index

On 1/26/2009 1:46 PM, Alexy Khrabrov wrote:
If you did that, it would be quite difficult to get at a "colname" 
variable that *isn't* the column of df.  It would be something like

  df[get("colname", parent.frame()) == value,]

So just use subset(), or with(), or type the extra 3 chars.

Duncan