[R] reorder() in the latticeExtra library

2012-11-03 Thread JDINIS
Hello all, thanks for your time and help. Below are my commands, and it generates a really nice plot, however I am not happy with the reorder() function. I would like the order to be the same as they appear in the genotype variable "genotype <- c("CJ1450 NW 4/25/12","CJ1450 BAL 4/25/12","CJ1450 NW

[R] Performing multiplication on duplicate values

2012-10-29 Thread JDINIS
Hello all, thank you for your help. The task I need to perform is difficult to explain so I apologize a head of time for any confusion. I have a data frame with these colnames() Reference_Position, Reference_Allele, Variant_Allele, Variant_Frequency, AAC_Variant. If a value is duplicated in the

Re: [R] Delete row if two values in a matrix are equal

2012-10-26 Thread JDINIS
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. ___

[R] Delete row if two values in a matrix are equal

2012-10-26 Thread JDINIS
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