Off topic:A specific problem to range data within R(or linux,python)
0
0
Entering edit mode
4 months ago
szp770 ▴ 10

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!

RNA-Seq R python linux seq • 168 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1025 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6