You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
haven::read_dta has the ability to read “notes” from ".dta" files produced by STATA. haven::write_dta can write .dta files with a "label" attribute for the data set that STATA users can see when they load the data.
It would be great if haven:write_dta could write the value stored in an attribute named "notes" to the .dta file. In Stata, the "notes" attribute can contain more characters than the "label" attribute, so I find it more useful. For example, I would like to include a link to the source of the raw data in a file that contains the processed data.
It appears that this functionality is working in the underlying ReadStat package.
The text was updated successfully, but these errors were encountered:
Seems like the function readstat_add_note can be used to add notes to datafiles when saving them. I've tried figuring out how to implement this functionality into the haven package, but since I have no experience with implementing C code in R packages I haven't gotten very far...
Also, a workaround to get save .dta files with notes mentioned in an issue for the ReadStata13 package here:
haven::read_dta
has the ability to read “notes” from ".dta" files produced by STATA.haven::write_dta
can write .dta files with a "label" attribute for the data set that STATA users can see when they load the data.It would be great if
haven:write_dta
could write the value stored in an attribute named "notes" to the.dta
file. In Stata, the "notes" attribute can contain more characters than the "label" attribute, so I find it more useful. For example, I would like to include a link to the source of the raw data in a file that contains the processed data.It appears that this functionality is working in the underlying ReadStat package.
The text was updated successfully, but these errors were encountered: