I've got a table such as this:
structure(list(Suggested.Symbol = c("CCT4", "DHRS2", "PMS2",
"FARSB", "RPL31", "ASNS"), p_dc14 = c(0.3975, 0.3707, 6.117e-17,
0.2975, 0.4443, 0.7661), p_tfc6 = c(0.2078, 0.896, 7.388e-19,
0.5896, 0.3043, 0.6696), p_tms30 = c(0.5724, 0.3409, 4.594e-13,
0.2403, 0.1357, 0.3422), p.min = c(0.2078, 0.3409, 7.388e-19,
0.09781, 0.1357, 0.3422)), row.names = c(NA, 6L), class = "data.frame")
I'd like to create a new column called 'significant'. In this column, on a row-wise basis, I'd like to look up the value of "p.min" in the "p_dc14", "p_tfc6" or "p_tms30" columns, and return the name of the column that matches "p.min".
Can anyone help?