Hello i have a dataFrame with 15167 rows like this:
> head(datExpr)
F02234_L1_S1_L001 F02235_L1_S2_L001
ENSG00000182199 1546 1710
ENSG00000157870 3491 2951
ENSG00000077092 35 22
ENSG00000047936 49 12
ENSG00000156282 0 0
ENSG00000183856 265 365
F02236_L1_S3_L001 F02237_L1_S4_L001
ENSG00000182199 3530 3582
ENSG00000157870 2372 2360
ENSG00000077092 111 34
ENSG00000047936 43 6
ENSG00000156282 0 0
ENSG00000183856 768 1489
and a list with 15167 elements like this:
> distances
[[1]]
end_position
1 12883
2 100722
3 119629
4 57174
5 78317
6 453372
7 21772
8 30102
9 116734
..........
I want to divide all in the dataframe by equivalent values of my list. For example 1546/12883,1710/12883, 3530/12883 ... and 3491/100722, 2951/100722...
How can i do that with R?