read.dta_vc: Read Stata Files, using pkg foreign

Description Usage Arguments Details Value See Also Examples

View source: R/dta.R

Description

This is a wrapper function for 'foreign::read.dta', use is identical to the original function.

Usage

1
read.dta_vc(file, ..., version_control = "DATA_VC", verbose = FALSE)

Arguments

file

a filename or URL as a character string.

...

other params for read.dta see read.dta

version_control

name of data version control file. Default is 'data_vc'. Should match name used in 'make_data_vc'.

verbose

logical, report returned current file version? Default is FALSE

Details

Internally it checks the data version control file and returns the stamp associated with the current version of the desired 'file'.

Value

A data frame with attributes.

See Also

read.dta

Examples

1
2
3
make_data_vc()
foreign::write.dta_vc(cars, "my_cars.dta", verbose = TRUE)
foreign::read.dta_vc("my_cars.dta", verbose = TRUE)

williamlief/DataVersionControl documentation built on Jan. 6, 2020, 8:20 a.m.