to_genepop | R Documentation |
data.frame
This is a basic output file formatter for saving files necessary for saving output in textual formats.
to_genepop(df, stratum = "Population")
df |
The |
stratum |
The stratum to use as "POP" (default="Population") |
A string representation of the data.frame
formatted as
Rodney J. Dyer <rjdyer@vcu.edu>
A <- locus( c("1","1"))
B <- locus( c("1","2"))
C <- locus( c("2","2"))
loc1 <- c( A, A, B, B, B, B, C, C)
loc2 <- c( A, B, B, C, A, B, A, C)
pop <- data.frame( Population=c( rep("A",4),rep("B",4) ), loc1, loc2)
gp <- to_genepop( pop )
cat(gp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.