R/get_trno.r

get.trno <- function(run){
    if (exists('output')){
        output=get('output')
    }else{
        stop('Model outputs have not been loaded.')
    }
    trno = as.integer(as.character(levels(as.factor(output[output$RUN%in%run,]$TRNO))))
    return(trno)
}
palderman/dssatR documentation built on May 24, 2019, 5:59 p.m.