# NOT RUN {
# }
# NOT RUN {
# Example 1----------------------
geno <- c(12, 52, 62, 45, 54, 21)
geno <- matrix(geno, 3, 2)
# ordering the data
aue.sort(geno, ploidy = 2)
# decreasing sort order
aue.sort(geno, ploidy = 2, decreasing = TRUE)
# Example 2----------------------
geno2 <- c(123456, 524556, 629359, 459459, 543950, 219405)
geno2 <- matrix(geno2, 3, 2)
# ordering the data as diploid
aue.sort(geno2, ploidy = 2) # the data is ordered using blocks of 3 characters
# ordering the data as triploid
aue.sort(geno2, ploidy = 3) # the data is ordered using blocks of 2 characters
# error: the ploidy and the number of characters are not congruent
aue.sort(geno2, ploidy = 5)
# error: the ploidy and the number of characters are not congruent
aue.sort(geno2, ploidy = 5)
# Example 3----------------------
# any character data
generic <- c("aldk", "kdbf", "ndnd", "ndkd")
generic <- matrix(generic, 2, 2)
aue.sort(generic, ploidy = 2)
aue.sort(generic, ploidy = 4)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab