一般问题:我不明白如何根据其他组的条件创建值。我想这样做: gen x = cond(cond1==1 & cond2==1, value[**of some other row in a different group**], other_value)
具体问题:给出了基于id永远不会改变的是有一组庞大的数据集,并做了二代身份证(co_id)。每个组有多个行,在time中重复。每行有一个标志
是否有一个特殊的名字在做条件分配?下面是一个例子就是我用C问: // Assume a and b have been previously defined and are compatible types
if((a = b)) { // <- What do you call that?
//do something
}
我的一对夫妇朋友,我相信,有它的名称,以及其他一些人都
为什么我的“C”条件转到'else'语句?,他们分开去了'if'语句,但是一起工作。 var objTest = {
ID : "10"
};
//A: First Condition: Exist value in property ID
console.log((objTest.ID ? 'if' : 'else')); // output => "if"
//