add.fam.scores: Sum all the given scores and return a single vector with...

View source: R/relatedness.R

add.fam.scoresR Documentation

Sum all the given scores and return a single vector with cumulative "score", "for" and "against" vals. For use in instances where one wishes to combine scores from multiple families.

Description

Sum all the given scores and return a single vector with cumulative "score", "for" and "against" vals. For use in instances where one wishes to combine scores from multiple families.

Usage

add.fam.scores(score.vec)

Arguments

score.vec

A vector will all of the per family score outputs.

Value

A vector with the summed scores of all inputs.

Examples

score.fam1 <- c("score" = 1.0, "score.for" = 2.0, "score.against" = 1.0)
score.fam2 <- c("score" = 1.0, "score.for" = 3.0, "score.against" = 2.0)
out <- add.fam.scores(c(score.fam1, score.fam2))

KinformR documentation built on Feb. 17, 2026, 5:07 p.m.