Skip to content
Back to formatted view

Raw Message

Message-ID: <1462E781-74E9-43D0-9972-74106316A042@gmail.com>
Date: 2009-01-26T18:46:24Z
From: Alexy Khrabrov
Subject: name scoping within dataframe index

Every time I have to prefix a dataframe column inside the indexing  
brackets with the dataframe name, e.g.

df[df$colname==value,]

-- I am wondering, why isn't there an R scoping rule that search  
starts with the dataframe names, as if we'd said

with(df, df[colname==value,])

-- wouldn't that be a reasonable default to prepend to the name search  
path?

Cheers,
Alexy