▾ Quoted text (6 lines)
Re: [R] Data alignment
Thanks for your suggestions. I will try them.
The "-" in my original post was actually only there to serve as a
separator
▾ Quoted text (2 lines)
so that it is easier for you to see the data structure but apparently it
rather confused you... sorry :)
That is why dput is to be used. Try this by yourself
structure(c(2L, 1L, 1L, NA, 2L, 1L, NA, NA, 2L, NA, NA, NA, NA,
1L, NA, NA, NA, 2L, NA, 1L, NA, 2L, NA, 3L, NA), .Dim = c(5L,
5L), .Dimnames = list(NULL, c("", "BMW", "Mercedes", "VW", "Skoda"
)))
x<-structure(c(2L, 1L, 1L, NA, 2L, 1L, NA, NA, 2L, NA, NA, NA, NA,
1L, NA, NA, NA, 2L, NA, 1L, NA, 2L, NA, 3L, NA), .Dim = c(5L,
5L), .Dimnames = list(NULL, c("", "BMW", "Mercedes", "VW", "Skoda"
)))
[1] TRUE
Regards
Petr
▾ Mailing list footer
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
▾ Mailing list footer
and provide commented, minimal, self-contained, reproducible code.
Message-ID:
<OFBD24641F.1755A7F8-ONC125795D.003AB12C-C125795D.003B10E8@precheza.cz>
In-Reply-To:
<1322915587713-4153112.post@n4.nabble.com>