View source: R/generate_founders.R

Generates founders given a covariate data matrix or dataframe and returns a matrix of founder chromosomes. Number of founders is determined by `choose(C, 2)`

where C is number of predictors. Maximum number of founding chromosomes is 200. User can specify number of starting chromosomes and this number can be larger than 200. Founding chromosmes are generated randomly and unique values are kept.

1 | ```
generate_founders(X, start_chrom)
``` |

`X` |
a matrix or dataframe of predictor variables |

`start_chrom` |
a numeric value indicating user specified number of founding chromosomes. Default is null. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.