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
Xtdpdgmm codeHi, I want to replicate the result of the following code by using Xtdpdgmm. But I don't know what wo…
How to make stata show the "Yes" answers in graphs insted of "No"Hi, I've been trying to graph some data but Stata keeps represent the group who answered no to the …
Margins dxdySo I need to calculate the partial effect at the average and the average partial effect of a probit …
Descriptive analysisHello, i am suppose to run a descriptive analysis on a varialbe called ' General health'. When i sum…
Creating Percent Change VariableHello, I am doing a secondary data analysis of pre and post-surveys for a falls prevention program.…
Subscribe to:
Post Comments (Atom)
0 Response to New version of xdir on SSC
Post a Comment