p.adjust apply on a correlation table (matrix or data.frame)

p.adjust.table(pp, method = "BH", mode = "all")

Arguments

pp

table of p-values

method

see p.adjust, default: "BH".

mode

"all" for all values; "rows" adjust each row one by one; "columns" adjust each column one by one. Default: "all".

Value

a table of adjusted p-values

See also

Other calculate: c_net_calculate(), cal_sim(), fast_cor(), read_corr()

Examples

matrix(abs(rnorm(100, 0.01, 0.1)), 10, 10) -> pp
p.adjust.table(pp, method = "BH", mode = "all") -> pp_adj