getTotals | R Documentation |
Find, or add, the LR totals in a data frame with marker-wise LR values. The
totals are found by multiplying the values in each column, after removing
NA
's.
getTotals(x, cols = c("LRlinked", "LRnolink", "LRnomut"))
addTotals(x, cols = c("LRlinked", "LRnolink", "LRnomut"))
x |
A data frame with LR results, typically the output of |
cols |
A vector of column names, by default |
Note that for the multiplication to respect linked markers, the input table
should include LR values for only one marker in each linkage group, and
NA
's elsewhere. This is the format used by linkedLR()
.
getTotals()
returns a named numeric. addTotals
returns a data
frame equal to the input, but with a row of totals added at the bottom.
res = linkedLR(paternity)
getTotals(res)
addTotals(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.