data(toyped)
x = linkdat(toyped)
#to see the effect of each command, use \code{plot(x)} in between
x = addParents(x, id=2, father=5, mother=6)
x = swapSex(x, c(1,5))
x = swapSex(x, c(2,6))
x = addOffspring(x, mother=6, noffs=2, id=c(7,10))
x = removeIndiv(x, 3)
x = swapAff(x, c(4,10))
stopifnot(setequal(x$orig.ids, c(1,2,4,5,6,7,10,11)))
Run the code above in your browser using DataLab