I have a list as follows (each element is a data frame).
$E9
time response
1: 0.0 0.00000000
2: 0.2 0.00826733
3: 0.4 0.01416873
4: 0.6 0.00845066
5: 0.8 0.01258872
6: 1.0 0.01097368
$F12
time response
1: 0.0 0.00000000
2: 0.2 0.00703381
3: 0.4 0.00863728
4: 0.6 0.00739067
5: 0.8 0.00786157
6: 1.0 0.00679848
$H1
time response
1: 0.0 0.00000000
2: 0.2 0.00142469
3: 0.4 -0.00418229
4: 0.6 0.00361758
5: 0.8 0.00281592
6: 1.0 -0.00293035
I want to multiply each element with a scaling factor, which is stored in a named numeric vector as follows:
F12 H1
1.033911 1.088928
For example, I want to multiply the response column of the "F12" element by the element (with the same name) in the vector (1.033911), and if there is no corresponding scaling factor, such as the "E9" element in the list, then I will skip it from being scaled. Thank you for your help.