Description Usage Arguments Author(s) See Also Examples
View source: R/fill_ecogen_with_pop.R
This function imports into an ecogen object the population data contained in ecopop object. The function assign the values of the data to each individual, according to the population of the individual.
1 2 3 4 5 6 7 | eco.fill_ecogen_with_ecopop(
from,
to,
pop,
what = c("all", "XY", "P", "E", "C"),
bind_columns = FALSE
)
|
from |
ecopop object. |
to |
ecogen object. |
pop |
Column in slot S of ecogen object, with the population of each individual. |
what |
Data frames to add into the the ecogen object. Can be one of c("all", "XY", "P", "E", "C") |
bind_columns |
Bind columns of the generated tables with the preexisting in the ecogen slots? |
Leandro Roser learoser@gmail.com
eco.fill_ecogen_with_df
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
data(eco.test)
# Example 1: add population data to ecogen object
result <- eco.fill_ecogen_with_ecopop(my_ecopop, eco, "pop")
# Example 2: Create ecogen object only with population data
out <- ecogen(S = eco[["S"]])
out <- eco.fill_ecogen_with_ecopop(my_ecopop, out, "pop")
# add the allele frequency data into the slot C with the function eco.add_popdata_into_ecogen
out <- eco.fill_ecogen_with_df(eco, "pop", c(1,2,3,4), C = my_ecopop[["C"]])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.