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
Trying to calculate time length for hospital episodes of multiple consec. rows, but also multiple nested within one 'person'Hi STATALIST, First time poster here. I am hoping someone can assist with my hospital record data ca…
Set colorsSorry, I have asked this before. But now I have two computers and have spend an hour with help and t…
Modelling temporal dependence in within-between "hybrid" modelsDear Statalisters, I would like to know how to properly specify a temporal variable in within-betwe…
local macro and loopHi Statalist, I am trying to use a local macro with a foreach loop to clean up some vars. Here is my…
Changes in Control/Treatment groups after PSMDear friends, Hi. As in the previous post, Hi All, In case anyone viewing this thread is inte…
Subscribe to:
Post Comments (Atom)
0 Response to New version of xdir on SSC
Post a Comment