[R] why the dim gave me different results
Murat Tasan
mmuurr at gmail.com
Thu Jun 3 00:00:06 CEST 2010
row names are not the same as line numbers or indices.
you've likely done some row-based selection on an original matrix or
data frame.
observe from the example below.
(and in the future please don't expect people to sort through your
500+ line matrices by hand to find your problems.)
> x <- matrix(1:12, byrow = TRUE, ncol = 3)
> rownames(x) <- 1:4
> x
[,1] [,2] [,3]
1 1 2 3
2 4 5 6
3 7 8 9
4 10 11 12
> y <- x[x[,2] != 5,]
> y
[,1] [,2] [,3]
1 1 2 3
3 7 8 9
4 10 11 12
> dim(x)
[1] 4 3
> dim(y)
[1] 3 3
-murat
On Jun 2, 5:47 pm, Changbin Du <changb... at gmail.com> wrote:
> > dim(tmp)
> [1] 576 12
> > tmp
>
> 1 10 11 12 13 2 3 4 5 6 7 9
> 1 0 0 0 0 0 0 0 12 0 0 0 0
> 2 0 0 0 0 0 0 0 15 0 0 0 0
> 3 0 0 0 0 0 0 0 11 0 0 0 0
> 4 0 0 0 0 0 0 0 11 0 0 0 0
> 5 0 0 0 0 0 0 0 12 0 0 0 0
> 6 0 0 0 0 0 0 0 6 0 0 0 0
> 7 0 0 0 0 0 0 0 5 0 0 0 0
> 8 0 0 0 0 0 0 0 11 0 0 0 0
> 9 0 0 0 0 0 0 0 11 0 0 0 0
> 10 0 0 0 0 0 0 0 5 0 0 0 0
> 11 0 0 0 0 0 0 0 8 0 0 0 0
> 12 0 0 0 0 0 0 0 12 0 0 0 0
> 13 0 0 0 0 0 0 0 6 0 0 0 0
> 14 0 0 0 0 0 0 0 5 0 0 0 0
> 15 0 0 0 0 0 0 0 5 0 0 0 0
> 16 0 0 0 0 0 0 0 6 0 0 0 0
> 17 0 0 0 0 0 0 0 0 0 0 9 0
> 18 0 0 0 0 0 0 0 13 0 0 0 0
> 19 0 0 0 0 0 0 0 7 0 0 0 0
> 20 0 0 0 0 0 0 0 10 0 0 0 0
> 21 0 0 0 0 0 0 0 13 0 0 0 0
> 22 0 0 0 0 0 0 0 17 0 0 0 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0 0 0 12 0 0 0
> 596 0 0 0 0 0 0 0 0 18 0 0 0
> 597 0 0 0 0 0 0 0 0 0 0 0 14
> 598 0 0 0 0 0 0 0 0 6 0 0 0
> 599 0 0 0 0 0 0 0 0 0 0 0 6
> 600 0 0 0 0 0 0 0 0 6 0 0 0> dim(tmp)
>
> [1] 576 12
>
> Why the dim(tmp) gave me different results? THe line numbers are not right?
>
> Thanks!
>
> --
> Sincerely,
> Changbin
> --
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-h... at r-project.org mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list