Thanks as always to Kit Baum, a new version of the xframeappend package is available for download from SSC. In Stata, use the ssc command to do this, or adoupdate if you already have an old version of xframeappend.
The xframeappend package is described as below on my website. The new version fixes a bug, which caused the old version to fail uninformatively when appending a dataframe with a nonempty variable set and an empty observation set.
Best wishes
Roger
-----------------------------------------------------------------------------------------------------------------------------------------------------------
package xframeappend from https://www.rogernewsonresources.org.uk/stata16
-----------------------------------------------------------------------------------------------------------------------------------------------------------
TITLE
xframeappend: Append data frames to the end of the current data frame
DESCRIPTION/AUTHOR(S)
xframeappend appends the contents of one or more frames in the
input framelist to the current data frame. The new
observations will be at the bottom of the current frame. And
any variables in the appended frames in the framelist but not
in the current frame will be ordered in order of appearance in
the framelist. The command works for variables whose names
begin with an underscore.
Author: Roger Newson
Distribution-Date: 01january2025
Stata-Version: 16
INSTALLATION FILES (click here to install)
xframeappend.ado
xframeappend.sthlp
-----------------------------------------------------------------------------------------------------------------------------------------------------------
(click here to return to the previous screen)
The xframeappend package is described as below on my website. The new version fixes a bug, which caused the old version to fail uninformatively when appending a dataframe with a nonempty variable set and an empty observation set.
Best wishes
Roger
-----------------------------------------------------------------------------------------------------------------------------------------------------------
package xframeappend from https://www.rogernewsonresources.org.uk/stata16
-----------------------------------------------------------------------------------------------------------------------------------------------------------
TITLE
xframeappend: Append data frames to the end of the current data frame
DESCRIPTION/AUTHOR(S)
xframeappend appends the contents of one or more frames in the
input framelist to the current data frame. The new
observations will be at the bottom of the current frame. And
any variables in the appended frames in the framelist but not
in the current frame will be ordered in order of appearance in
the framelist. The command works for variables whose names
begin with an underscore.
Author: Roger Newson
Distribution-Date: 01january2025
Stata-Version: 16
INSTALLATION FILES (click here to install)
xframeappend.ado
xframeappend.sthlp
-----------------------------------------------------------------------------------------------------------------------------------------------------------
(click here to return to the previous screen)