R/label2lex.R

Defines functions label2lex

Documented in label2lex

label2lex <-
function(label, ngam){

    ## label can be a vector
    
    all.lex <- allLex( ngam ) 
    lex <- all.lex[ label+1 ] ## need to +1 as label starts at zero 
        
    return( lex )  
}

Try the IBDLabels package in your browser

Any scripts or data that you put into this service are public.

IBDLabels documentation built on May 2, 2019, 9:58 a.m.