Thanks as always to Kit Baum, new versions of the xdir and descgen packages are now avaiilable for download from SSC. In Stata, use the ssc command to do this, or adoupdate if you already have old versions of these packages.
The xdir and descgen packages are described as below on my website, and form part of a fleet of metadata-management packages. The new xdir now has a second module xframedir, creating resultssets with 1 observation per data frame, instead of 1 observation per data file. The new descgen is updated to Stata Version 16, and now has a framename() option, enabling descgen to input a xframedir resultsset instead of a xdir resultsset.
Users of old versions of Stata can still download the old Stata 10 versions of xdir and descgen by typinng, in Stata,
net from "https://ift.tt/2neTMC9"
and selecting and downloading the packages required.
Best wishes
Roger
-------------------------------------------------------------------------------
package xdir from http://www.rogernewsonresources.org.uk/stata16
-------------------------------------------------------------------------------
TITLE
xdir: Create a resultsset with 1 observation per file or per frame
DESCRIPTION/AUTHOR(S)
xdir is an extended version of dir, or of the extended macro
function dir. It creates an output dataset (or resultsset), with 1
observation for each file in a user-specified directory conforming
to a user-specified pattern, and belonging to a user-specified file
type, and data on the file name and the directory name. xframedir
is an extended version of frames dir. It creates a resultsset with
1 observation per frame in the memory. The resultsset from xdir or
xframedir may be listed using the list() option and/or saved to a
data frame using the frame() option and/or saved to a file using the
saving() option and/or written to the memory using the norestore or
fast option, overwriting any existing dataset. Alternatively (or
additionally), a list of the file or frame names may be saved in a
local macro, using the local() option, or the plocal() option for
xdir.
Author: Roger Newson
Distribution-Date: 07may2020
Stata-Version: 16
INSTALLATION FILES (click here to install)
xdir.ado
xframedir.ado
xdir.sthlp
xframedir.sthlp
-------------------------------------------------------------------------------
(click here to return to the previous screen)
-------------------------------------------------------------------------------
package descgen from http://www.rogernewsonresources.org.uk/stata16
-------------------------------------------------------------------------------
TITLE
descgen: Add Stata dataset attributes to a xdir or xframedir resultsset
DESCRIPTION/AUTHOR(S)
descgen is intended for use in output datasets (or resultssets)
produced by the xdir or xframedir module of the xdir package,
which have one observation for each of a list of files or frames,
and data on directory names and file or frame names. It inputs
the file or frame name variable and (optionally) the directory
name variable, and generates a list of new variables, containing,
in each observation, Stata dataset attributes describing the
Stata dataset stored in the corresponding file or frame. These
attributes include numbers of variables and observations and
sizes of an observation or of the dataset, and (optionally)
dataset labels, dataset characteristics or lists of variables in
the dataset. If the corresponding file or frame does not exist,
or does not contain a Stata dataset, then these dataset attribute
variables will have missing values.
Author: Roger Newson
Distribution-Date: 08may2020
Stata-Version: 16
INSTALLATION FILES (click here to install)
descgen.ado
descgen.sthlp
-------------------------------------------------------------------------------
(click here to return to the previous screen)
Related Posts with New versions of xdir and descgen on SSC
Lag generation with multiple dates Code: * Example generated by -dataex-. For more info, type help dataex clear input double(date id p…
How to draw 1:2 matched dataset then double the cases?Hello Statalists, Part of my data is as follows: Code: * Example generated by -dataex-. For more i…
Is there any reason to test Difference-in-Differences if paralell trend is weakly unsatisfied?Normally when testing the parallel trend assumption in the Difference-in-Differences setting, we nor…
Problem to create loopGoodmorning I have a panel data, with severall variables for each countriesin every years. However I…
Count unique observations by grouping vars if conditions is metHi I want to count the number of unique ID's per year and group. I have managed that with the follo…
Subscribe to:
Post Comments (Atom)
0 Response to New versions of xdir and descgen on SSC
Post a Comment