R/timssg8.select.merge.R

Defines functions timssg8.select.merge

Documented in timssg8.select.merge

timssg8.select.merge <-
function(folder=getwd(), countries, student=c(), school, math.teacher, science.teacher) {
  
  if (!missing(math.teacher) && !missing(science.teacher)) 
    stop("not possible to merge science and math teacher data")
  
  if (!missing(math.teacher)) {
    timss8_conf$input$teacher[2] <- "btm"
    intsvy.select.merge(folder=folder, countries=countries, student=student, school=school, teacher = math.teacher, config=timss8_conf)
  } else {
    timss8_conf$input$teacher[2] <- "bts"
    intsvy.select.merge(folder=folder, countries=countries, student=student, school=school, teacher = science.teacher, config=timss8_conf)
  }

}

Try the intsvy package in your browser

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

intsvy documentation built on Oct. 3, 2023, 1:07 a.m.