Fixed several linting issues

This commit is contained in:
Waldir Leoncio 2022-07-28 15:47:36 +02:00
parent 66d0f0c730
commit 835ac7e6b9
28 changed files with 180 additions and 175 deletions

View file

@ -10,7 +10,9 @@ fgetl(file)
\item{file}{character vector to be read, usually an output of `fopen()`}
}
\value{
If the file is nonempty, then fgetl returns tline as a character vector. If the file is empty and contains only the end-of-file marker, then fgetl returns tline as a numeric value -1.
If the file is nonempty, then fgetl returns tline as a character
vector. If the file is empty and contains only the end-of-file marker, then
fgetl returns tline as a numeric value -1.
}
\description{
Equivalent function to its homonymous Matlab equivalent.

View file

@ -15,8 +15,11 @@ randga(a, b)
One realization of Gamma(a, b)
}
\description{
Generates one random number from shape parameter a and rate parameter b
Generates one random number from shape parameter a and rate
parameter b
}
\details{
The generated random variable has mean a / b. It will be positively-skewed for small values, but converges to a symmetric distribution for very large numbers of a and b.
The generated random variable has mean a / b. It will be
positively-skewed for small values, but converges to a symmetric distribution
for very large numbers of a and b.
}

View file

@ -17,5 +17,6 @@ simuloiAlleeli(allfreqs, pop, loc)
Simuloi populaation pop lokukseen loc alleelin.
}
\note{
This function is (only?) called by `simulateIndividuals()`. Therefore, exporting it is probably unnecessary.
This function is (only?) called by `simulateIndividuals()`. Therefore,
exporting it is probably unnecessary.
}

View file

@ -10,11 +10,13 @@ testaaGenePopData(tiedostonNimi)
\item{tiedostonNimi}{Filename}
}
\value{
kunnossa (binary "ok" condition value) == 0 if the data is not valid genePop data. Otherwise, kunnossa == 1.
kunnossa (binary "ok" condition value) == 0 if the data is not valid
genePop data. Otherwise, kunnossa == 1.
}
\description{
Tests GenePop data
}
\details{
GenePop data are textfiles that follow the GenePop format. This function checks if such file is properly formatted as GenePop.
GenePop data are textfiles that follow the GenePop format. This
function checks if such file is properly formatted as GenePop.
}