Clarification needed. Are your data in a data frame or an alphanumeric matrix? What does it look like?
A small reproducible example would be very useful here I think! [1] http://stackoverflow.com/questions/5963269/how-to-make-a- great-r-reproducible-example [2] http://adv-r.had.co.nz/Reproducibility.html Also, is this relevant: > d <- matrix(1:12,ncol = 4) > d [,1] [,2] [,3] [,4] [1,] 1 4 7 10 [2,] 2 5 8 11 [3,] 3 6 9 12 > dd <- d[,c(3,1,2,4)] > dd [,1] [,2] [,3] [,4] [1,] 7 1 4 10 [2,] 8 2 5 11 [3,] 9 3 6 12 Perhaps you neeed to spend time with an R tutorial that covers indexing of data frames and matrices, an absolutely basic R operation? (I am not clear from your question if this is your problem). Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Thu, May 10, 2018 at 2:36 PM, greg holly <mak.hho...@gmail.com> wrote: > Dear all; > > I need to run heatmap. Because my first column in my data is alphanumeric, > I can not run as.matrix(scale(my_data)). So I need to make my data readable > as in data(mtcars). In *mtcars *data the first column is alphanumeric and > has no name. > > Thanks, > > Greg > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/ > posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.