Dataset metadata can be valuable, eg. by tracing an archived dataset back to the code that generated it. The metadata added by NMstamp can be accessed using the function NMinfo.
NMstamp(data, script, time = Sys.time(), ...)
data with meta data attached. Class unchanged.
NMstamp modifies the meta data by reference. See example.
NMinfo
Other DataCreate:
NMorderColumns()
,
NMwriteData()
,
addTAPD()
,
findCovs()
,
findVars()
,
flagsAssign()
,
flagsCount()
,
mergeCheck()
,
tmpcol()
x=1
NMstamp(x,script="example.R",description="Example data")
NMinfo(x)
#> $dataCreate
#> $dataCreate$DataCreateScript
#> [1] "example.R"
#>
#> $dataCreate$CreationTime
#> [1] "2024-11-01 10:47:02 UTC"
#>
#> $dataCreate$description
#> [1] "Example data"
#>
#>