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
Logit in 2 stepsHi, I want to model the following. In the internationalization of the firm, it can decide to enter…
Oceania Stata Conference 2022 - Call for speakersOceania Stata Conference 2022 Exploring the stories in your data with Stata Using Stata’s powerful…
"Random Effect model and FGLS" "Fixed effect model and FGLS"Hi Experts Hope you are doing well! Details of my dataset: Unbalanced Panel Dataset Data were tak…
Calculating the sample size needed for population proportion estimationDear users, I am new to Stata, and my question is: what is the correct procedure for calculating the…
a variable that indicates whether it is the first week of the month, second week, etc...Dear all, I have a date variable in my dataset in the following format: 27feb2015 20feb2015 13feb2…
Subscribe to:
Post Comments (Atom)
0 Response to New version of xdir on SSC
Post a Comment