有條件地應(yīng)用功能我有這樣的數(shù)據(jù)幀:experiment iter results
A 1 30.0
A 2 23.0
A 3 33.3
B 1 313.0
B 2 323.0
B 3 350.0
....有沒有辦法通過應(yīng)用具有條件的函數(shù)來計(jì)算結(jié)果。在上面的例子中,該條件是特定實(shí)驗(yàn)的所有迭代。A sum of results (30 + 23, + 33.3)B sum of results (313 + 323 + 350)我正在考慮“應(yīng)用”功能,但找不到讓它工作的方法。
有條件地應(yīng)用功能
ibeautiful
2019-07-30 16:49:43