Skip to content

the first name of the first column

1 message · Bert Gunter

#
1. My name is Bert, not Brent;

2. I am not your private consultant -- always cc the list 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))
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.28 27.58  0.80
[4,]    42.22    14.22 34.70 31.90
[1] TRUE

## to get rid of the column names:
[,1]  [,2]  [,3]  [,4]
[1,]  8.36  0.44  6.90  0.50
[2,]  8.78  0.58 21.16  0.24
[3,] 16.52  2.28 27.58  0.80
[4,] 42.22 14.22 34.70 31.90


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 3:13 PM, greg holly <mak.hholly at gmail.com> wrote: