Displaying 1 result from an estimated 1 matches for "cu_tp".
Did you mean:
cpu_t
2018 May 10
0
the first name of the first column
...d 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_ppmtp Zn.ppmtp Mn_tp Cu_tp
[1,] 8.36 0.44 6.90 0.50
[2,] 8.78 0.58 21.16 0.24
[3,] 16.52 2...