2020-07-14 12:25:30 +02:00
|
|
|
% Generated by roxygen2: do not edit by hand
|
|
|
|
|
% Please edit documentation in R/handleData.R
|
|
|
|
|
\name{handleData}
|
|
|
|
|
\alias{handleData}
|
|
|
|
|
\title{Handle Data}
|
|
|
|
|
\usage{
|
2023-08-11 11:13:24 +02:00
|
|
|
handleData(raw_data, format = "Genepop")
|
2020-07-14 12:25:30 +02:00
|
|
|
}
|
|
|
|
|
\arguments{
|
2023-08-09 12:50:29 +02:00
|
|
|
\item{raw_data}{Raw data in Genepop or BAPS format}
|
2023-08-11 11:13:24 +02:00
|
|
|
|
|
|
|
|
\item{format}{data format}
|
2020-07-14 12:25:30 +02:00
|
|
|
}
|
|
|
|
|
\description{
|
|
|
|
|
Handle Data
|
|
|
|
|
}
|
|
|
|
|
\details{
|
|
|
|
|
The last column of the original data tells you from which
|
|
|
|
|
individual that line is from. The function first examines how many line
|
|
|
|
|
maximum is from one individual giving know if it is haploid, diploid, etc.
|
|
|
|
|
After this function. Add blank lines for individuals with fewer rows as
|
|
|
|
|
maximum. If the code of an allele is = 0, the function changes that allele
|
|
|
|
|
code to the smallest code that is larger than any code in use. After this,
|
|
|
|
|
the function changes the allele codes so that one locus j
|
2023-08-09 12:50:29 +02:00
|
|
|
codes get values between? 1, ..., noalle(j).
|
2020-07-14 12:25:30 +02:00
|
|
|
}
|