<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
</head>
<body>
<p style="margin: 0;">
<span>
<span></span>
</span>
Hello!
</p>
<p style="margin: 0;"> </p>
<p style="margin: 0px; ">I've got three populations (dna_eu, dna_or and dna_ne) in data.frames. Now I want to use tabfreq() to convert these three data.frames into one tabfreq object. I read, that one has to give a list of data frames in the tab argument. So I tried:</p>
<p style="margin: 0px; "> </p>
<p>dna_list <- data.list(dna_eu, dna_or, dna_ne)</p>
<p>dna_pop <- tabfreq(tab = dna_list, pop.names = as.factor(c("dna_eu", "dna_or", "dna_ne")))</p>
<p> </p>
<p>But now the the error occures, that "all elements of tab must be of types matrix or data.frame". My question is: What am I doing wrong?</p>
<p> </p>
<p>I would be very happy and thankful, if you could help me out!</p>
<p> </p>
<p>Greetings,</p>
<p>Daniela Huber</p>
</body>
</html>