# NOT RUN {
x = ped(id = 3:1, fid = c(1,0,0), mid = c(2,0,0), sex = c(1,2,1), reorder = FALSE)
x
# The 'ids' argument is converted to character, hence these are equivalent:
internalID(x, ids = 3)
internalID(x, ids = "3")
hasParentsBeforeChildren(x)
# Fix the ordering
y = parentsBeforeChildren(x)
internalID(y, ids = 3)
# A different ordering
reorderPed(x, c(2,1,3))
# }
Run the code above in your browser using DataLab