tab2mat: Tabular to matrix

View source: R/tab2mat.R

tab2matR Documentation

Tabular to matrix

Description

Converts tabular data to matrix data.

Usage

tab2mat(tab)

Arguments

tab

: data.frame with 2 integer (IDs) and 1 numeric (values) columns.

Value

Converted data.frame to matrix

Examples

ped = data.frame(ID=1:6, SIRE=c(0,0,1,3,1,4), DAM=c(0,0,2,2,2,5))
tab2mat(tabA(ped))


ggroups documentation built on March 28, 2022, 1:06 a.m.