[Forensim-help] Problems with tabfreq for three populations
hinda haned
hindantation at gmail.com
Thu Nov 3 09:51:23 CET 2011
Dear Daniela,
Have you checked whether all elements of your list are of the same type?
For instance, can you try: sapply(dna_list, class)
Best wishes
Hinda
---------- Message transféré ----------
> From: "Daniela Huber, STUD-MM" <dhuber at rheinahrcampus.de>
> To: forensim-help at lists.r-forge.r-project.org
> Date: Tue, 1 Nov 2011 16:55:01 +0100 (CET)
> Subject: Problems with tabfreq for three populations
> **
>
> 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/20111103/7cd29259/attachment.htm>
More information about the Forensim-help
mailing list