hybridIndex(c(0.3, 0.5, 0.7))
hybridIndex(c(0.3, 0.5, 0.7), rescale = TRUE)
hybridIndex(1:10, ChosenInds = 1:5, rescale = TRUE)
filepaths <- c(
system.file("extdata", "data7x3.txt", package = "diemr"),
system.file("extdata", "data7x10.txt", package = "diemr")
)
ploidies <- list(
rep(2, 7),
c(2, 1, 2, 2, 2, 1, 2)
)
hybridIndex(x = filepaths, ploidy = ploidies,
changePolarity = c(FALSE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, FALSE,
TRUE, TRUE, FALSE, TRUE, TRUE))
Run the code above in your browser using DataLab