version 3.0.3
complete_datasignature¶
complete_datasignature creates a signature for a Stata .dta-file that does not depend on the embedded timestamp but does depend on the data and, optionally, no other metadata, variable and value labels only, or all metadata.
complete_datasignature extends Stata's datasignature by allowing the inclusion of different sets of metadata.
Syntax¶
complete_datasignature [, dta_file("file.dta") fname("sigfile.ext") nometa fast labels_formats_only]
By default, complete_datasignature will use the dta-file in memory to create create a signature that depends on the data and all metadata, but not the embedded timestamp.
Options¶
Option |
Description |
---|---|
dta_file("file.dta") |
Use "file.dta" instead of dta-file in memory |
fname("sigfile.ext") |
write signature to "sigfile.ext" |
nometa |
Do not include any metadata -- equivalent of Stata's datasignature |
labels_formats_only |
Include variable formats, variable and value labels |
fast |
use _datasignature in fast mode -- faster but not machine-independent |
Example(s)¶
. sysuse auto
(1978 automobile data)
. datasignature
74:12(71728):3831085005:1395876116
. complete_datasignature, nometa
74:12(71728):3831085005:1395876116
. complete_datasignature, labels_formats_only
74:12(71728):3831085005:1395876116:2144891519
. complete_datasignature
74:12(71728):3831085005:1395876116:711253444
. ret li
macros:
r(signature) : "74:12(71728):3831085005:1395876116:711253444"
. _datasignature, fast
74:12(71728):3831085005:186045760
. complete_datasignature, nometa fast
74:12(71728):3831085005:186045760
Stored results¶
r(signature) signature calculated by complete_datasignature