Dear Daniela,<br>Have you checked whether all elements of your list are of the same type? For instance, can you try: sapply(dna_list, class)<br><br>Best wishes<br>Hinda<br><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
---------- Message transféré ----------<br>From: "Daniela Huber, STUD-MM" <<a href="mailto:dhuber@rheinahrcampus.de">dhuber@rheinahrcampus.de</a>><br>To: <a href="mailto:forensim-help@lists.r-forge.r-project.org">forensim-help@lists.r-forge.r-project.org</a><br>
Date: Tue, 1 Nov 2011 16:55:01 +0100 (CET)<br>Subject: Problems with tabfreq for three populations<br><u></u>
<div>
<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>
</div>
<br><br></blockquote></div><div><br></div><br>