
Originally Posted by
ZephyrousMandaru
"Error in read.table(file = file, header = header, sep = sep, quote = quote, :
duplicate 'row.names' are not allowed"
Code:
tVec <- read.table(file = target, head = TRUE, sep = "\t", row.names = 1)
in R file is reading your target.txt file. Its sensitive to whitespace as well. You need to space each entry with a tab.
The error is perhaps because of multiple header(ANE/WHG....) entries.
Code:
Oceanian_purple Central_Asian_teal European_blue Amerindian_pink South_Asian_light_green EEF_orange East_Asian_yellow Siberian_crimson Sub.Saharan_light_blue
Polish 0.005857 0.43027 0.012981 0.020237 0.143712 0.328508 1E-005 1E-005 0.058415
I created my own target.txt file and even followed the 'syntax' but had trouble as well. I just copy pasted each population to the provided sample target.txt file.
Unless your issue is with .csv file.