get.database {MoBPS} | R Documentation |
gen/database/cohorts conversion
Description
Function to derive a database based on gen/database/cohorts
Usage
get.database(
population,
gen = NULL,
database = NULL,
cohorts = NULL,
avoid.merging = FALSE
)
Arguments
population |
Population list |
gen |
Quick-insert for database (vector of all generations to export) |
database |
Groups of individuals to consider for the export |
cohorts |
Quick-insert for database (vector of names of cohorts to export) |
avoid.merging |
Set to TRUE to avoid different cohorts to be merged in a joint group when possible |
Value
Combine gen/database/cohorts to a joined database
Examples
data(ex_pop)
get.database(ex_pop, gen=2)
[Package MoBPS version 1.6.64 Index]