read.relation.mat: Read in relationship matrix Apply the individual names to the...

View source: R/io.R

read.relation.matR Documentation

Read in relationship matrix Apply the individual names to the rows and columns.

Description

Row/column intersections give the degree of relationship for the two individuals. 0 = self, -1 = unrelated.

Usage

read.relation.mat(fname)

Arguments

fname

The file with the relationship matrix information.

Value

A matrix with the relationships and individual ids as rownames and colnames.

Examples

mat.name1 <-system.file('extdata/1234_ex2.mat', package = 'KinformR')
mat1 <- read.relation.mat(mat.name1)

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