Displaying 1 result from an estimated 1 matches for "clo_rr_anova".
2003 Oct 18
1
why does data frame subset return vector
...tes
a
vector rather than a data frame whereas sub-setting the 2 column data frame
returns
a new data frame (as I'd expect).
> df.rr[1:4,]
[1] 1.11e-16 1.11e-16 1.11e-16 1.11e-16
> is.vector(df.rr[1:4,])
[1] TRUE
> is.data.frame(df.rr[1:4,])
[1] FALSE
> df.rr <- read.table("CLO_RR_anova.txt", header=T, comment.char="")
> is.data.frame(df.rr[1:4,])
[1] TRUE
Any explanation is appreciated. There must be a good reason for this I guess
... . On
the other hand is there a way to fore the subset of the 1 colum data frame to
be
dataframe itself? I'd just like to see...