On 1/26/2009 2:20 PM, Alexy Khrabrov wrote:
On Jan 26, 2009, at 2:12 PM, Duncan Murdoch wrote:
df[get("colname", parent.frame()) == value,]
Actually, what I propose is a special search rule which simply
looks at the enclosing dataframe.name[...] outside the brackets
and looks up the colum
On Jan 26, 2009, at 2:12 PM, Duncan Murdoch wrote:
df[get("colname", parent.frame()) == value,]
Actually, what I propose is a special search rule which simply
looks at the enclosing dataframe.name[...] outside the brackets
and looks up the columns first.
Yes, I understood that, and I ex
On 1/26/2009 2:01 PM, Alexy Khrabrov wrote:
On 1/26/2009 1:46 PM, Alexy Khrabrov wrote:
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 w
On 1/26/2009 1:46 PM, Alexy Khrabrov wrote:
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
wit
Try:
subset(df, colname == value)
On Mon, Jan 26, 2009 at 1:46 PM, Alexy Khrabrov wrote:
> 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 s
On 1/26/2009 1:46 PM, Alexy Khrabrov wrote:
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
wi
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
7 matches
Mail list logo