Hi, all. I have a set of data like this:
a,0.1,0.4,1.5,1.8,1.2,0.8,0.5,0.2 b,0.4,0.9,1.1,0.3,0.1 c,0.5,0.7,1.9,2.5,2.2,0.7,0.2
which is every variable(here---a,b,c) has a set of values and there must be a man value in the middle(here for a,b,c--1.8,1.1,2.5 in the middle), I want to make this data like this:
a,0.1,0.4,1.5,1.8,1.2,0.8,0.5,0.2 b,0, 0.4,0.9,1.1,0.3,0.1,0, 0 c, 0.5,0.7,1.9,2.5,2.2,0.7,0.2,0
which is to make the max value of each variable standing in the absolute center and fill the blanks with 0. How Can I do this with R(or python,linux). Thanks!