保存表值并在公式中使用它你好
我需要从数据表中获取单个值(基准值),以便可以在公式中使用它来计算相对值。
我尝试使用在哪里获取价值功能并将其另存为变量。我没有收到错误,但也没有得到输出。我究竟做错了什么?
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]