R/stata.reader.R

Defines functions stata.reader

Documented in stata.reader

#' @describeIn preinstalled.readers Read a Stata file with a \code{.stata} file extension.
stata.reader <- function(data.file, filename, variable.name)
{
  .require.package('foreign')

  assign(variable.name,
         foreign::read.dta(filename),
         envir = .TargetEnv)
}

Try the ProjectTemplate package in your browser

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

ProjectTemplate documentation built on July 31, 2021, 5:07 p.m.