Thanks as always to Kit Baum, a new version of the xdir package is now available for download from SSC. In Stata, use the ssc command to do this, or adoupdate if you already have an old version of xdir.
The xdir package is described as below on my website. The new version adds an option plocal(local_macro_name), specifying that a local macro will be created in the calling segment, containing a list of the files specified complete with a prefixed directory path. This can be very useful if the user wants to concatenate the specified files into the memory using the append command.
I am hoping that this will be the last version of xdir in Stata Version 10, before I update it to a Stata Version 16 version, using data frames. (I plan to continue to distribute the old version on my website, for users of Stata Versions 10-15.)
Best wishes
Roger
-------------------------------------------------------------------------------
package xdir from http://www.rogernewsonresources.org.uk/stata10
-------------------------------------------------------------------------------
TITLE
xdir: Create a resultsset with 1 observation per file in a directory
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. This
dataset may be listed using the list() 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 names may be
saved in a local macro.
Author: Roger Newson
Distribution-Date: 05august2019
Stata-Version: 10
INSTALLATION FILES (click here to install)
xdir.ado
xdir.sthlp
-------------------------------------------------------------------------------
(click here to return to the previous screen)
Related Posts with New version of xdir on SSC
Reliability coefficient omega and alphaDear all, using Code: ssc install omega , I calculated the reliability coefficient omega and alpha…
Selecting only 10 consecutive years in a datasetDear Statalist, I am a new user of Stata and I use it for my master thesis. I have created a datase…
Create dummy based on condition(panel data)Hi stata, I want to create this "newdummy" based on the following condition. If the sum of scaledum…
Use a time-limited outcome variable with xtgls?We have a dataset of heart rate variation over time during a 5-minute session (increments of 30 data…
Calculating the highest and lowest quartile for a variable of multiple waves in panel dataHi Statalist, I want to calculate the highest and lowest quartile for mental health (stdMentalHealt…
Subscribe to:
Post Comments (Atom)
0 Response to New version of xdir on SSC
Post a Comment