Closed the-x-at closed 3 years ago
Supplying a numeric argument to the "id" parameter in plotPed with a result object of type "FAKinGroupResults" results in an undesired pedigree or in error message "Error in affGroup[[id]] : subscript out of bounds".
From the vignette:
plotPed(kinGroup, id=kinGroupRes[kinGroupRes$family == "432", "group_id"][1], prune=TRUE) % Works.
plotPed(kinGroup, id=kinGroupRes[kinGroupRes$family == "432", "group_id"][1], prune=TRUE)
kinGroupRes[kinGroupRes$family == "432", "group_id"][1] % [1] "17609"
kinGroupRes[kinGroupRes$family == "432", "group_id"][1]
plotPed(kinGroup, id=17609, prune=TRUE) % Error in affGroup[[id]] : subscript out of bounds
plotPed(kinGroup, id=17609, prune=TRUE)
Supplying a numeric argument to the "id" parameter in plotPed with a result object of type "FAKinGroupResults" results in an undesired pedigree or in error message "Error in affGroup[[id]] : subscript out of bounds".
From the vignette:
plotPed(kinGroup, id=kinGroupRes[kinGroupRes$family == "432", "group_id"][1], prune=TRUE)
% Works.kinGroupRes[kinGroupRes$family == "432", "group_id"][1]
% [1] "17609"plotPed(kinGroup, id=17609, prune=TRUE)
% Error in affGroup[[id]] : subscript out of bounds