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[][, 100] <- listb[] lista[][, 100] <- listb[] lista[][, 100] <- listb[]
here 1,2,3 is toy example, what I will process more than 200