Learn R Programming

Crossover (version 0.1-13)

getModelNr: 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

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

Run the code above in your browser using DataLab