I have two lists, lista and listb,
lista contains three elements, each of their class() is frame:
frame1, frame2, frame3. Each frame nrows = 50, ncols = 100
listb contains three elements, each of their class() is numeric:
vector1, vector2, vector3. Each vector length is 50
I want to do
vector1 replace the 100th col (last column) of frame1,
vector2 replace the 100th col of frame2,
vector3 replace the 100th col of frame3.
How can I realize is not by for cycle use R? Many thanks! I search this question for several hours,but seems no similar can be reference.
yes,for R, it's
lista[[1]][, 100] <- listb[[1]]
lista[[2]][, 100] <- listb[[2]]
lista[[3]][, 100] <- listb[[3]]
here 1,2,3 is toy example, what I will process more than 200
I don't fully understand what you want to do, something like this ?
Can you explain how this is related to bioinformatics? If not it will be closed and it would be better if you try on StackOverflow
Thank you for reminding me. Actually, the last col is coverage value of each position on chromosome, but I should mapping this value to same scale so each sample can be compared when they are visualized. Now is let the transfered value to replace raw value.