Hi Borja,
You may issue:
attach(data)
which results in adding your column names to the search path of R for name
resolving.
Pierrick Bruneau
CRP Gabriel Lippmann
On Wed, Mar 20, 2013 at 11:17 PM, Borja . borjalato...@outlook.com wrote:
Good day.
I create a data frame like this:
On Mar 21, 2013, at 7:39, Pierrick Bruneau pbrun...@gmail.com wrote:
Hi Borja,
You may issue:
attach(data)
No -- bad idea -- dangerous -- confusing statefulness, etc. (See explanations
in the archives as to why)
which results in adding your column names to the search path of R for
Or simply
subset(dat, a 0)
HTH,
Jorge.-
On Thu, Mar 21, 2013 at 6:58 PM, Michael Weylandt wrote:
On Mar 21, 2013, at 7:39, Pierrick Bruneau pbrun...@gmail.com wrote:
Hi Borja,
You may issue:
attach(data)
No -- bad idea -- dangerous -- confusing statefulness, etc. (See
OK, I just had a look at the Good Practice section of ?attach, it indeed
looks bad...
Maybe this danger should be emphasized in ?attach, or the function even
deprecated (why maintaining ugly patterns when better solutions exist?)
On Thu, Mar 21, 2013 at 8:58 AM, Michael Weylandt
] problem subsetting data.frame in R version 2.15.2 for
Windows
OK, I just had a look at the Good Practice section of ?attach, it
indeed looks bad...
Maybe this danger should be emphasized in ?attach, or the function even
deprecated (why maintaining ugly patterns when better solutions exist
Good day.
I create a data frame like this:
data - data.frame(a=1:10,b=11:20,c=21:30)
I can subset this data.frame by saying:
data[data$a7,]
and I get this result
a b c8 8 18 28
9 9 19 29
Hello,
Inline.
Em 20-03-2013 22:17, Borja . escreveu:
Good day.
I create a data frame like this:
data - data.frame(a=1:10,b=11:20,c=21:30)
I can subset this data.frame by saying:
data[data$a7,]
and I get this result
a b c
7 matches
Mail list logo