an R package for genetic analysis of populations with mixed