Tag Info

New answers tagged

2

There are likely many ways to go about this, but here is one which uses pattens and replacement rules: data = {{-0.6, 0.04, 22}, {0.1, 0.3, 1}, {0.4, 0.05,0.01}}; rule = {a_, b_, c_} /; Abs[a] > 0.5 && Abs[b] <= 0.05 :> {Item[Style[a, Red, Bold], Background -> LightBlue, FrameStyle -> Darker[Red, 0.25], Frame -> ...


1

You can do something like: TableForm[ Map[If[Abs[#[[1]]] > 0.5 && #[[2]] <= 0.05, {Item[#[[1]], Background -> LightBlue], Item[#[[2]], Background -> LightBlue], #[[3]]}, #] &, M], TableHeadings -> {{"x", "y", "z"}, {"correlation", "pValue", "tStatistic"}}] Grid has, as Kuba noted, a direct way of doing this, check ...



Top 50 recent answers are included