EXTRACT_METADATA(1)
β¨ extract_metadata β¨
okay bestie, gather round, because this little command is genuinely iconic and you're gonna love her π
πΈ NAME πΈ
extract_metadata β she reads column metadata from SPSS and Stata binary files, and formats it as JSON. yes, that's the whole job, and she does it flawlessly, no cap. π
π SYNOPSIS π
extract_metadata input-file output-file
that's it. two files in, zero drama. periodt. π
π¦ DESCRIPTION π¦
so here's the vibe: extract_metadata reads column metadata from existing binary data files, so that readstat can produce new, column-compatible binary files from CSV input files. the way that works is that both programs use JSON as a metadata interchange format β it's giving shared language, it's giving bestie-to-bestie communication, it's giving interoperability. π
your input-file needs to be a file with one of these extensions, and ngl each one is a whole different flavor:
dtaβ Stata binary file, version104or newersavβ SPSS uncompressed binary filezsavβ SPSS compressed binary file
and in ALL cases, no exceptions, youroutput-fileshould end in.json. like. please. the.jsonis the whole point. π
π EXAMPLE π
imagine this: you've got a Stata file with last year's survey data, and you want to produce a compatible Stata file containing this year's survey data. obsessed. so first, you extract the metadata:
extract_metadata last-year.dta survey-metadata.json
now you apply it to this year's data, which is stored in a CSV file:
readstat this-year.csv metadata.json this-year.dta
and here's the key part, bestie, don't skip it: the first line of the CSV file should contain column names which match the column names in last-year.dta. if everything went well, your new binary data set is now stored in this-year.dta. slay. new file, who dis. π₯
π OPTIONS π
- None.
yeah. zero flags. she doesn't need them. she said "I'm enough." π«Ά
π AUTHOR π
Copyright (C) 2012-2019 Evan Miller, and others where indicated.
and that's the whole page, fr fr π this is the General Commands Manual version of extract_metadata(1), dated 01 February 2019 β take care of her, she's a legend, mwah πβ¨π¦
π¦ where this page comes from
- arch rolling: readstat 1.1.9-2 Β· MIT
- debian bookworm: readstat 1.1.8-1 Β· MIT
- debian trixie: readstat 1.1.9-4 Β· MIT
- fedora 43: readstat-tools 1.1.9-6.fc43 Β· MIT
- fedora 43: readstat-tools 1.1.9-8.fc43 Β· MIT
- fedora 44: readstat-tools 1.1.9-9.fc44 Β· MIT
- nixos 26.05: readstat 1.1.9
- nixpkgs unstable: readstat 1.1.9
- ubuntu jammy: readstat 1.1.7-3 Β· MIT
- ubuntu noble: readstat 1.1.9-2.1build2 Β· MIT
- ubuntu questing: readstat 1.1.9-4
- ubuntu resolute: readstat 1.1.9-6build2 Β· MIT
- ubuntu stonking: readstat 1.1.9-6build2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms