Minor adjustments for clean check

This commit is contained in:
Waldir Leoncio 2020-06-24 16:49:31 +02:00
parent d074de07f4
commit 0190910244
5 changed files with 7 additions and 4 deletions

View file

@ -43,7 +43,7 @@ addAlleles <- function(data, ind, line, divider) {
data[2 * ind, j] <- tokaAlleeli
}
data[2 * ind - 1,end] <- ind
data[2 * ind, end] <- ind
data[2 * ind - 1, ncol(data)] <- ind
data[2 * ind, ncol(data)] <- ind
return(data)
}

View file

@ -2,6 +2,7 @@
#' @description Creates an array of zeros
#' @param n a the first dimension (or both, if sz is not passed)
#' @param sz the second dimension (or 1st and 2nd, if not passed)
#' @param ... Other dimensions
#' @return An array of zeroes with the dimensions passed on call
cell <- function(n, sz = c(n, n), ...) {
if (length(sz) == 1 & missing(...)) {

View file

@ -1,6 +1,6 @@
#' @title Find out the Digit Format
#' @param line the first line after the "pop" word from data in Genepop format. # @note Function clarified based on the line format whether the alleles of the data are given using 2 or 3 numbers.
#' @return
#' @return df
#' @export
selvitaDigitFormat <- function(line) {
# line on ensimm<6D>inen pop-sanan j<>lkeinen rivi

View file

@ -10,6 +10,8 @@ cell(n, sz = c(n, n), ...)
\item{n}{a the first dimension (or both, if sz is not passed)}
\item{sz}{the second dimension (or 1st and 2nd, if not passed)}
\item{...}{Other dimensions}
}
\value{
An array of zeroes with the dimensions passed on call

View file

@ -10,7 +10,7 @@ selvitaDigitFormat(line)
\item{line}{the first line after the "pop" word from data in Genepop format. # @note Function clarified based on the line format whether the alleles of the data are given using 2 or 3 numbers.}
}
\value{
df
}
\description{
Find out the Digit Format