search for: fe_ppmtp

Displaying 1 result from an estimated 1 matches for "fe_ppmtp".

2018 May 10
0
the first name of the first column
...unless you have good reason not to. I have done that here. It looks like this is what you want; if so, you really need to go through an R tutorial or two to learn the basics: d <- structure(list(region = structure(c(1L, 1L, 1L, 1L), .Label = "zilan", class = "factor"), Fe_ppmtp = c(8.36, 8.78, 16.52, 42.22), Zn.ppmtp = c(0.44, 0.58, 2.28, 14.22), Mn_tp = c(6.9, 21.16, 27.58, 34.7), Cu_tp = c(0.5, 0.24, 0.8, 31.9)), class = "data.frame", row.names = c(NA, -4L)) > md <- as.matrix(d[,-1]) ## knowledge of indexing is essential in R ! > md Fe_...