renumber_GSP {gscramble}R Documentation

Renumber GSP members by adding a constant to each

Description

This function assumes that all individuals are named as numerics and that their haplotypes in hap1 and hap2 are named Xa and Xb,respectively, and their samples are named sX, where X is an integer,

Usage

renumber_GSP(G, add)

Arguments

G

a GSP tibble

add

amount to add to each label

Value

Returns a GSP just like the input, but with the identity numbers of the individuals in it incremented by add.

Examples

# get an example GSP
G <- create_GSP(pop1 = "p1", pop2 = "p2", F1B2 = TRUE)



[Package gscramble version 1.0.1 Index]