大家好,
我想知道如何根據引用列引用特定列中的值。 這個概念就像 Excel 中的 VLOOKUP。 我有一個帶有名稱的數據表,並且該特定名稱有一個唯一的閾值。
Variability Chart(
Y( :Signal ),
X( :Expected Outcome, :Sample Mix, :Consumable ),
Max Iter( 100 ),
Conv Limit( 0.00000001 ),
Number Integration Abscissas( 128 ),
Number Function Evals( 65536 ),
Analysis Type( Name( "Choose best analysis (EMS REML Bayesian)" ) ),
Process Variation( 0 ),
Show Range Bars( 0 ),
Show Cell Means( 0 ),
Std Dev Chart( 0 ),
Points Jittered( 1 ),
Show Box Plot Whisker Bars( 0 ),
Mean Diamonds( 0 ),
By( :Description ),
SendToReport(
Dispatch(
{"Variability Chart for Signal"},
"2",
ScaleBox,
{Scale( "Log" ), Min( 0.01 ), Max( 1250 ), Inc( 1 ), Minor Ticks( 8 ), Add Ref Line( 0, Dotted, "Medium Light Gray" ),
Add Ref Line( <STRONG>***[5/(I want this to be the value based on the By reference in the variability chart]***</STRONG>, Dotted, "Black" ), Rotated Labels( "Horizontal" )}
)
)
);在我看來,它會在 By 分組中獲取 :Description 的當前值,然後在“Threshold (nA)”列中找到相應的閾值值。 但我不確定該怎麼做。
一個更簡單的例子是:
示例數據表:
A B C
1 2 3
1 4 3
2 6 5
2 7 5
3 4 4
4 9 4
我的可變性圖表將繪製 B 作為 y 軸,但我想要一條基於 My By 的水平線,在這種情況下將是 A,因此 1、2、3。 所以我的三個可變性圖將有 3、5 和 4 作為各自的水平線,基於 A 的值。 截至目前,我不確定如何獲取此值並將其插入上面的代碼以通過描述作為我的 By 分組來獲取動態水平線。 任何幫助將不勝感激。 謝謝!