G T 45
#5 5 T C 80
identical(dat2,dat3)
#[1] TRUE
identical(dat2,dat4)
#[1] TRUE
A.K.
- Original Message -
From: JDINIS
To: r-help@r-project.org
Cc:
Sent: Friday, October 26, 2012 10:26 AM
Subject: [R] Delete row if two values in a matrix are
Thanks Rui for all your help and I really appreciate you taking the time to
explain everything!
--
View this message in context:
http://r.789695.n4.nabble.com/Delete-row-if-two-values-in-a-matrix-are-equal-tp4647554p4647565.html
Sent from the R help mailing list archive at Nabble.com.
___
Hello,
First, two notes:
1. 'var' is a really bad name for a variable, it already is an R function.
2. Your matrix seems more like a data.frame. The difference is important
because data.frames by default coerce character strings to factors. I
have tried to make the code work if this is the case
Hi all and thank you for your time.
I would like to delete rows from this matrix I call "var" if the character
in Ref_Allele is equal to the character in Var_Allele. I have attached a
before and after, to help my poor explanation. If someone could provide me
with some code, or some guidance I wou
4 matches
Mail list logo