Description Usage Arguments Examples
read.dta.gz
and write.dta.gz
allow one to
read and write gzip compressed stata files
1 2 3 | write.dta.gz(dataframe, file, ...)
read.dta.gz(file, ...)
|
dataframe |
Dataframe |
file |
String giving filename |
... |
Passed onto either |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.