phsc.get.pairwise.relationships.keff.and.neff: Count observed relationship states

View source: R/phyloscan.fun.private.R

phsc.get.pairwise.relationships.keff.and.neffR Documentation

Count observed relationship states

Description

This function counts for each pair of individuals their relationship states across all windows (KEFF), and the total number of windows (NEFF). Since windows can be overlapping, the count is a real value.

Usage

phsc.get.pairwise.relationships.keff.and.neff(df, get.groups, w.slide = NA)

Arguments

df

data.table with basic relationship types for paired individuals across windows. Must contain columns 'ID1','ID2','W_FROM','W_TO','TYPE_BASIC'.

get.groups

names of relationship groups

Value

new data.table with columns ID1 ID2 GROUP TYPE K KEFF N NEFF.


olli0601/phyloscan documentation built on April 14, 2024, 5:19 p.m.