[R] DNAbin

Alfredo Cortell @||redo@corte||@n|co|@u @end|ng |rom gm@||@com
Tue Oct 16 19:55:49 CEST 2018


Dear all,

Is it possible to convert a data frame with variables (columns) and the
number of persons for each variable at a given time at the day (rows) to
DNAbin object type, so that I can calculate Tajima's divergence? I've been
trying, but I just can't find the way.

Thank you very much,


V1 V2 V3 V4 V5 V6 V7
1 0 0 0 0 0 0
4 0 0 1 0 0 0
18 0 0 3 1 0 0
20 0 0 155 1 0 0
50 0 0 200 1 0 0
120 0 0 200 1 0 0
456 0 0 200 1 0 0

	[[alternative HTML version deleted]]




More information about the R-help mailing list