如何使用索引命名在循环中比较列值。我试图创建一列,并且仅当其他两列中的值相等时,才将该列的值分配给该列。 我必须使用索引命名,因为我处于循环状态,并且不会总是知道列名是什么或数字是什么(请参见下图)。 该脚本会创建新列,但不能正确评估我的公式。 请帮忙!
我的剧本:
dt << New Column(RamanPeakList [NameIndex] ||“ Peak”,<<设置每个值(If(Column(RamanPeakList [NameIndex] ||“ Peak Intensity”)== Column(“ Temp” || RamanPeakList [NameIndex] ),:Raman Shift)));