df2solar(df, dir, kinship, kin2.gz = "kin2.gz", sort.ped = TRUE)
df
in SOLAR format, (2) separates it into
two parts, pedigree and phenotypes,
and then (3) expots both data sets in
the directory dir
.Pedigree or ID variables are detected by matchIdNames
function.