[Forensim-help] Problems with tabfreq for three populations

Daniela Huber, STUD-MM dhuber at rheinahrcampus.de
Tue Nov 1 16:55:01 CET 2011


Hello!
 
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:
 
dna_list <- data.list(dna_eu, dna_or, dna_ne)
dna_pop <- tabfreq(tab = dna_list, pop.names = as.factor(c("dna_eu", "dna_or",
"dna_ne")))
 
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?
 
I would be very happy and thankful, if you could help me out!
 
Greetings,
Daniela Huber
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/forensim-help/attachments/20111101/1ea77b2f/attachment.htm>


More information about the Forensim-help mailing list