Learn R Programming

MoBPS (version 1.13.1)

diag.mobps: Diagonal matrix

Description

Function to add a genotyping array for the population

Usage

diag.mobps(elements)

Value

Diagonal matrix

Arguments

elements

vector with entries to put on the diagonal of a matrix

Examples

Run this code
diag.mobps(5)

Run the code above in your browser using DataLab