Fixed documentation for clean build

This commit is contained in:
Waldir Leoncio 2020-03-02 16:15:01 +01:00
parent 849288dfd3
commit 62598eaf0d
7 changed files with 39 additions and 3 deletions

View file

@ -5,6 +5,9 @@
#' @param npops npops
#' @param rowsFromInd rowsFromInd
#' @param alaraja alaraja
#' @param PARTITION PARTITION
#' @param COUNTS COUNTS
#' @param SUMCOUNTS SUMCOUNTS
#' @export
poistaLiianPienet <- function (npops, rowsFromInd, alaraja,
PARTITION = matrix(NA, 0, 0), COUNTS = matrix(NA, 0, 0),

View file

@ -1,6 +1,11 @@
#' @title Simulate individuals
#' @description simulate n individuals from population pop, such that
#' proportion "missing_level" of the alleles are present.
#' proportion "missing_level" of the alleles are present.
#' @param n n
#' @param rowsFromInd rowsFromInd
#' @param allfreqs allfreqs
#' @param pop pop
#' @param missing_level missing_level
#' @export
simulateIndividuals <- function(n, rowsFromInd, allfreqs, pop, missing_level) {

View file

@ -1,6 +1,9 @@
#' @title simuloiAlleeli
#' @description Simuloi populaation pop lokukseen loc alleelin.
#' @note This function is (only?) called by `simulateIndividuals()`. Therefore, exporting it is probably unnecessary.
#' @param allfreqs allfreqa
#' @param pop pop
#' @param loc loc
#' @export
simuloiAlleeli <- function(allfreqs, pop, loc) {
@ -18,7 +21,7 @@ simuloiAlleeli <- function(allfreqs, pop, loc) {
# allfreqs[, loc],
# allfreqs[, loc, pop]
# )
cumsumma <- cumsum(freqs)
arvo <- runif(1)