stata: Functions to read and write gzip compressed Stata files

Description Usage Arguments Examples

Description

read.dta.gz and write.dta.gz allow one to read and write gzip compressed stata files

Usage

1
2
3

Arguments

dataframe

Dataframe

file

String giving filename

...

Passed onto either write.dta or read.dta

Examples

1
2
3
4
5
6
df <- data.frame(x=rnorm(10), y=runif(10))
target <- tempfile("foo.dta.gz")
write.dta.gz(df, target)
df2 <- read.dta.gz(target)
all.equal(df, df2)
unlink(target)

tldutils documentation built on May 31, 2017, 4:35 a.m.

Search within the tldutils package
Search all R packages, documentation and source code