Hi everybody, How can I transform a 0/1 matrix into a TRUE/FALSE matrix, and vice versa? Many thanks __________________ Angel Valverde Portal avalverdeportal@yahoo.es [[alternative HTML version deleted]]
On 05/08/2011 10:46 AM, Angel Valverde Portal wrote:> Hi everybody, > > How can I transform a 0/1 matrix into a TRUE/FALSE matrix, and vice versa?If A is your matrix, and you really want 0 to be TRUE (a little weird...), just use A == 0 and you get a logical matrix. To go the other way, as.numeric will convert TRUE to 1 and FALSE to 0; if you don't want that, pre- or post-process. Duncan Murdoch
I just signed up for R Help, so please let me know if I'm doing this incorrectly. I've been working with R for a couple of weeks, attempting to process microarray data. This means 20,000+ rows of data to work with x 24 columns. I am trying to produce heatmaps and found that the best computer I have available to me can process the data without any clustering (Rowv=NA, Colv=NA), but my supervisor has made it clear that I need to have the clusters present. I have been messing around with the memory allocation commands, but I can't seem to get it to process even still. Are there any methods of getting large amounts of data to process into heatmaps that I should look into? Thank you very much, Tyler [[alternative HTML version deleted]]