kshedden / datareader

Read binary SAS (SAS7BDAT) and Stata (dta) files in the Go (Golang) programming language. Also provides command line tools for working with these file formats.
BSD 3-Clause "New" or "Revised" License
23 stars 12 forks source link

Writer? #2

Closed jontonsoup closed 5 years ago

jontonsoup commented 7 years ago

Does this library only read stata.dta files? Is it possible to write them?

Thanks!

kshedden commented 7 years ago

Sorry, only reading is implemented.

On Tue, May 23, 2017 at 4:41 PM, Jonathan Friedman <notifications@github.com

wrote:

Does this library only read stata.dta files? Is it possible to write them?

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kshedden/datareader/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ACiww6n2xI53Zj52i7d5340MB-6pajVrks5r80SKgaJpZM4NkP0U .

maplechori commented 5 years ago

Is the Series type going to be extended to hold information such as labels in Stata?

kshedden commented 5 years ago

I think what you want is available through some exported fields of the StataReader struct, e.g.:

https://github.com/kshedden/datareader/blob/master/stata_reader.go#L85

If something important is not accessible let me know.

maplechori commented 5 years ago

My bad I see it now.