t
have become a tad frustrated with it before now.
Bill Venables.
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of James Hirschorn
Sent: Monday, 15 November 2010 10:32 AM
To: R-help@r-project.org
Subject: [R] Extracting from dat
Software
wdunlap tibco.com
> -Original Message-
> From: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of James Hirschorn
> Sent: Sunday, November 14, 2010 4:32 PM
> To: R-help@r-project.org
> Subject: [R] Extracting from data.frame
>
Can someone please explain the following behavior?
df1 and df2 are data.frames. Suppose I want a subset of the rows
(observations) using extraction, say just the first row. What I want to know
is why if df1 has just one column then df1[1,] returns a vector, whereas if
df2 has 2 or more columns
3 matches
Mail list logo