保存表值並在公式中使用它你好
我需要從數據表中獲取單個值(基準值),以便可以在公式中使用它來計算相對值。
我嘗試使用在哪裡獲取價值功能並將其另存為變量。我沒有收到錯誤,但也沒有得到輸出。我究竟做錯了什麼?
col_dark =列(數據表(“ splitsummary2”),“ AUC暗相絕對值(ml / kg)”)<<獲取值其中(Column(“化合物”)==“ Vehicle0mg / kg”)
朱莉(Br Julie)
回复:保存表格值並在公式中使用我從未聽說過一個名為“在哪裡獲取值”的函數。 我認為您指的是“ Get Rows Where()”。 以下是根據我認為您想要的代碼對代碼進行的修改……
col_dark = :Name( "AUC dark phase absolute (ml/kg)" )[Data Table( "splitsummary2" ) <<
Get rows Where( :Compound == "Vehicle0mg/kg" )]
回复:保存表格值並在公式中使用dt = Data Table("splitsummary2");
// Get values as matrix and use the loc command to get the locations where compound is equal to "Vehicle0mg/kg". (In my table it appears 3 times). These locations you can use as indices to gt the value(s) you need for further analysis.
m = Column( dt, "AUC dark phase absolute (ml/kg)" ) <<
Get as matrix();
c = Column( dt, "Compound" ) <<GET as="" matrix=""></GET>
這應該為您帶來所需的價值。 [23330.7291666667]