:smartpink...@yahoo.com]
> Sent: Saturday, July 13, 2013 10:57 AM
> To: William Dunlap
> Cc: R help; Thiem Alrik
> Subject: Re: [R] Test for column equality across matrices
>
> I tried it on a slightly bigger dataset:
> A1 <- matrix(t(expand.grid(1:90, 15, 16)), nrow = 3)
&
ilto:smartpink...@yahoo.com]
Gesendet: Samstag, 13. Juli 2013 19:57
An: William Dunlap
Cc: mailman, r-help; Thiem Alrik
Betreff: Re: [R] Test for column equality across matrices
I tried it on a slightly bigger dataset:
A1 <- matrix(t(expand.grid(1:90, 15, 16)), nrow = 3)
B1 <- combn(90, 3)
which(is.
[[14]]
#[1] 14 15 16
is.element(B1Sp[[44331]],A1Sp[[14]])
#[1] TRUE TRUE TRUE
A.K.
- Original Message -
From: William Dunlap
To: Thiem Alrik ; "mailman, r-help"
Cc:
Sent: Saturday, July 13, 2013 1:30 PM
Subject: Re: [R] Test for column equality across matrices
Try
[1] 3 555
dim(B)
#[1] 3 560
#or
B2<-B[,is.na(match(interaction(as.data.frame(t(B))),interaction(as.data.frame(t(A)]
identical(B1,B2)
#[1] TRUE
A.K.
- Original Message -
From: Thiem Alrik
To: "mailman, r-help"
Cc:
Sent: Saturday, July 13, 2013 9:45 AM
Subject:
half
> Of Thiem Alrik
> Sent: Saturday, July 13, 2013 6:45 AM
> To: mailman, r-help
> Subject: [R] Test for column equality across matrices
>
> Dear list,
>
> I have two matrices
>
> A <- matrix(t(expand.grid(c(1,2,3,4,5), 15, 16)), nrow = 3)
> B <- combn(16
Dear list,
I have two matrices
A <- matrix(t(expand.grid(c(1,2,3,4,5), 15, 16)), nrow = 3)
B <- combn(16, 3)
Now I would like to exclude all columns from the 560 columns in B which are
identical to any 1 of the 6 columns in A. How could I do this?
Many thanks and best wishes,
Alrik
_
6 matches
Mail list logo