Minor adjustments for clean check
This commit is contained in:
parent
d074de07f4
commit
0190910244
5 changed files with 7 additions and 4 deletions
|
|
@ -43,7 +43,7 @@ addAlleles <- function(data, ind, line, divider) {
|
||||||
data[2 * ind, j] <- tokaAlleeli
|
data[2 * ind, j] <- tokaAlleeli
|
||||||
}
|
}
|
||||||
|
|
||||||
data[2 * ind - 1,end] <- ind
|
data[2 * ind - 1, ncol(data)] <- ind
|
||||||
data[2 * ind, end] <- ind
|
data[2 * ind, ncol(data)] <- ind
|
||||||
return(data)
|
return(data)
|
||||||
}
|
}
|
||||||
1
R/cell.R
1
R/cell.R
|
|
@ -2,6 +2,7 @@
|
||||||
#' @description Creates an array of zeros
|
#' @description Creates an array of zeros
|
||||||
#' @param n a the first dimension (or both, if sz is not passed)
|
#' @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 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
|
#' @return An array of zeroes with the dimensions passed on call
|
||||||
cell <- function(n, sz = c(n, n), ...) {
|
cell <- function(n, sz = c(n, n), ...) {
|
||||||
if (length(sz) == 1 & missing(...)) {
|
if (length(sz) == 1 & missing(...)) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#' @title Find out the Digit Format
|
#' @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.
|
#' @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
|
#' @export
|
||||||
selvitaDigitFormat <- function(line) {
|
selvitaDigitFormat <- function(line) {
|
||||||
# line on ensimm<6D>inen pop-sanan j<>lkeinen rivi
|
# line on ensimm<6D>inen pop-sanan j<>lkeinen rivi
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@ cell(n, sz = c(n, n), ...)
|
||||||
\item{n}{a the first dimension (or both, if sz is not passed)}
|
\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{sz}{the second dimension (or 1st and 2nd, if not passed)}
|
||||||
|
|
||||||
|
\item{...}{Other dimensions}
|
||||||
}
|
}
|
||||||
\value{
|
\value{
|
||||||
An array of zeroes with the dimensions passed on call
|
An array of zeroes with the dimensions passed on call
|
||||||
|
|
|
||||||
|
|
@ -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.}
|
\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{
|
\value{
|
||||||
|
df
|
||||||
}
|
}
|
||||||
\description{
|
\description{
|
||||||
Find out the Digit Format
|
Find out the Digit Format
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue