getModelNr: Get the number or character string specifying the model

View source: R/model.R

getModelNrR Documentation

Get the number or character string specifying the model

Description

Get the number or character string specifying the model

Usage

getModelNr(model, type = "numeric")

Arguments

model

Number or character string specifying the model

type

Eiher "numeric" or "character". If numeric the number of the model will be returned. Otherwise the character string description of the model.

Value

Either number or character string specifying the model.

Examples

Crossover:::getModelNr("Self-adjacency model")==Crossover:::getModelNr(2)
"Self-adjacency model"==Crossover:::getModelNr(2, type="character")
Crossover:::getModelNr("Self-adjacency model")==2

Crossover documentation built on March 31, 2023, 9:50 p.m.