If I have manage to download the file correctly, I think you have a mess on your hands. This is what I get.
dat2 structure(list(ANT.HEIGHT = 2:15, LEAF.AREA = c("", "", "205,90",
"197,63", "197,63", "205,90", "209,54", "-", "-", "195,02", "229,21",
"205,35", "237,59", "207,41"), LEAF.WEIDTH = c("", "", "490,07",
"398,10", "398,10", "490,07", "455,83", "-", "-", "424,61", "467,17",
"466,54", "502,92", "452,42"), LEAF.LENGTH = c("", "", "9,19",
"7,78", "7,78", "9,19", "8,00", "-", "-", "7,57", "9,40", "8,03",
"9,00", "8,83"), DIAMETER = c("", "", "76,20", "72,96", "72,96",
"76,20", "81,59", "-", "-", "79,80", "71,19", "82,60", "78,65",
"74,03"), Markername = c("", "", "1,57", "1,79", "1,79", "1,57",
"1,76", "-", "-", "1,36", "1,74", "1,58", "1,55", "1,60"), PZE.104090782 = c("",
"", "PHM10", "PHBW8", "PHBW8", "PHM10", "DH107", "DH265", "DH376",
"DH216", "DH236", "DH4", "DH70", "DH296"), SYN18784 = c("4",
"166875919", "A", "B", "B", "A", "B", "A", "B", "A", "B", "B",
"A", "A"), PZE.109052349 = c("9", "90367887", "A", "B", "B",
"A", "B", "A", "A", "A", "B", "B", "A", "B"), PZE.109052348 = c("9",
"90366825", "A", "B", "B", "A", "B", "A", "A", "A", "B", "B",
"A", "B"), ZM013464.0223 = c("9", "90366747", "A", "B", "B",
"A", "B", "A", "A", "A", "B", "B", "A", "B"), PZE.101178540 = c("10",
"51680981", "A", "B", "B", "A", "B", "A", "B", "B", "A", "B",
"B", "B"), PZE.102028584 = c("1", "223161749", "A", "B", "B",
"A", "B", "B", "B", "A", "B", "B", "B", "A"), X = c("2", "13382024",
"A", "B", "B", "A", "B", "B", "B", "B", "B", "A", "B", "B")), class = "data.frame", row.names = c(NA,
-14L))
Those "-" are converting what should be numeric variables to character variables. You are using a "," as a decimal marker and R needs the decimal marker to be a "." .
You have columns SYN18784, PZE-109052349, PZE-109052348, ZM013464-0223, PZE-101178540, PZE-102028584, with a mixture of numbers and characters. Fore example
SYN18784
4
166875919SYN18784
4
166875919
A
B
B
A
B
A
B
A
B
B
A
A
A
B
B
A
B
A
B
A
B
B
A
A
Is these intended to do character variables ?
I downloaded the dta to a spreadsheet, manually set the "-" cells to empty and saved as a .csv. I then read the data into are with
dat1 <- read.csv2("rami2.csv", sep = "\t")
and this is what I got.
dat1 <- structure(list(ANT.HEIGHT = 2:15, LEAF.AREA = c(NA, NA, 205.9,
197.63, 197.63, 205.9, 209.54, NA, NA, 195.02, 229.21, 205.35,
237.59, 207.41), LEAF.WEIDTH = c(NA, NA, 490.07, 398.1, 398.1,
490.07, 455.83, NA, NA, 424.61, 467.17, 466.54, 502.92, 452.42
), LEAF.LENGTH = c(NA, NA, 9.19, 7.78, 7.78, 9.19, 8, NA, NA,
7.57, 9.4, 8.03, 9, 8.83), DIAMETER = c(NA, NA, 76.2, 72.96,
72.96, 76.2, 81.59, NA, NA, 79.8, 71.19, 82.6, 78.65, 74.03),
Markername = c(NA, NA, 1.57, 1.79, 1.79, 1.57, 1.76, NA,
NA, 1.36, 1.74, 1.58, 1.55, 1.6), PZE.104090782 = c("", "",
"PHM10", "PHBW8", "PHBW8", "PHM10", "DH107", "DH265", "DH376",
"DH216", "DH236", "DH4", "DH70", "DH296"), SYN18784 = c("4",
"166875919", "A", "B", "B", "A", "B", "A", "B", "A", "B",
"B", "A", "A"), PZE.109052349 = c("9", "90367887", "A", "B",
"B", "A", "B", "A", "A", "A", "B", "B", "A", "B"), PZE.109052348 = c("9",
"90366825", "A", "B", "B", "A", "B", "A", "A", "A", "B",
"B", "A", "B"), ZM013464.0223 = c("9", "90366747", "A", "B",
"B", "A", "B", "A", "A", "A", "B", "B", "A", "B"), PZE.101178540 = c("10",
"51680981", "A", "B", "B", "A", "B", "A", "B", "B", "A",
"B", "B", "B"), PZE.102028584 = c("1", "223161749", "A",
"B", "B", "A", "B", "B", "B", "A", "B", "B", "B", "A"), X = c("2",
"13382024", "A", "B", "B", "A", "B", "B", "B", "B", "B",
"A", "B", "B")), class = "data.frame", row.names = c(NA,
-14L))
Does this data layout make any sense?