我有一系列的交易,每一个都表明购买了多少单位。例如,我有
我想复制3次花蕾灯和2次米勒灯:
换句话说,我需要像我的专栏中所指出的那样,创建相同数量的单个采购条目。
我怎么能这么做?感谢你的任何投入。
发布于 2016-03-21 16:48:14
有一个命令正是这样做的。
看看expand
描述
expand replaces each observation in the dataset with n copies of the observation, where n is equal to the
required expression rounded to the nearest integer. If the expression is less than 1 or equal to missing,
it is interpreted as if it were 1, and the observation is retained but not duplicated.https://stackoverflow.com/questions/24250192
复制相似问题