write.dta_vc: Write Stata Files, using pkg foreign

Description Usage Arguments Details See Also Examples

View source: R/dta.R

Description

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

Usage

1
2
write.dta_vc(dataframe, file, ..., stamp = Sys.Date(),
  version_control = "DATA_VC", verbose = FALSE)

Arguments

dataframe

a data frame

file

character string giving filename.

...

other params for write.dta see write.dta

stamp

file suffix to disambiguate, default is Sys.date()

version_control

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

verbose

logical, report update to version control file? Default is FALSE

Details

Internally it checks for the data version control file, and inserts or updates the record for the file that you are saving. The tracking is applied to the 'file'

See Also

write.dta

Examples

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

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