R/getKEY.R

Defines functions getKEY

Documented in getKEY

getKEY<-function(fn)
  {
#####   get the key data from ProfessR generated exam
    key = scan(file=fn, skip=2, what=list(q1=0, j1="", orig=0, j2="", ans=0), flush=TRUE)

    return(key$ans)


  }

Try the ProfessR package in your browser

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

ProfessR documentation built on Aug. 21, 2023, 9:07 a.m.