公卫百科  > 所属分类  >  Stata   
[0] 评论[0] 编辑

saveascii

saveascii -- A convenient wrapper for saveold , incorporating translation of unicode characters to extended ASCII encodings

公卫百科

saveascii acts as a wrapper for Stata's saveold command.  In contrast to this Stata command, it converts all string contents of the data set (i.e. variable names, data and variable labels, value label names and contents, characteristics' names and contents) from unicode to extended ASCII, when the target format is older than Stata 14.  Thereby, it is designed to be a seamless replacement to Stata's regular saveold. This means that saveascii is to be used in the same way as saveold itself, and behaves exactly like saveold in Stata versions older than 14.

公卫考场

In most cases, the results of using saveascii would be identical to those of saveold.  This is especially true if you use saveascii on Stata versions prior to 14, where it simply passes all arguments on to saveold.  In Stata 14 or newer, however, saveascii performs some conversion steps before calling saveold.  All string contents of the data set that contain unicode characters are converted to extended ASCII, and the resulting data is saved using saveold.

公卫家园


公卫考场

 The idea for this progam came from a thread on Statalist, where Svend Juul and Alan Riley discussed the topic.  Most of Alan Rileys proposed solutions from this thread have been incorporated into saveascii, and all credits regarding these parts belong to him (and / or StataCorp).

公卫论坛

https://www.statalist.org/forums/forum/general-stata-discussion/general/1290766-stata-14-unicode-and-extended-ascii
公卫考场


附件列表


0

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

如果您认为本词条还有待完善,请 编辑

上一篇 暴发疫情    下一篇

标签

暂无标签

同义词

暂无同义词