warcolak.convert {dmm} | R Documentation |
warcolak
data file to format required for a dataframe for dmm()
or mdf()
.
A simple function to relabel the columns of the warcolak
dataset from package nadiv
, to comply with the requirements of dmm()
or mdf()
.
warcolak.convert(w)
w |
An object produced by the call |
The warcolak
dataset has columns named slightly differently from what dmm()
requires, but is otherwise compatable. We use this function to do a simple conversion before using warcolak
as test data for dmm()
.
A dataframe containing the following columns:
Individual identifier
Sire identifier
Dam identifier
Coding for sex
First trait phenotypic value
Second trait phenotypic value
First trait additive genetic effect
Second trait additive genetic effect
Second trait additive genetic sexlinked effect
First trait dominance genetic effect
Second trait dominance genetic effect
First trait environmental effect
Second trait environmental effect
Neville Jackson
Functions dmm()
, mdf()
. Package nadiv
.
library(dmm)
data(warcolak)
warcolak.df <- warcolak.convert(warcolak)
str(warcolak.df)
rm(warcolak.df)
rm(warcolak)