R/import_haven_utils.r

Defines functions import_haven_utils

import_haven_utils <- function(){
  file <- "R/util.R"
  cat("# Borrow functions from haven, automatically created by 'import_haven_utils.R'\n", file=file)
  
  dump( list=c( "labelled"
                , "as_factor"
                , "as_factor.labelled"
                , "as_factor.character"
                , "[.labelled"
  )
  , file   = file
  , envir  = getNamespace('haven')
  , append = TRUE
  )
}

Try the cbsodataR package in your browser

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

cbsodataR documentation built on Jan. 13, 2021, 7:30 p.m.