fire199013 发表于 2020-4-2 12:47 
我也碰到了相似的问题,需要引用连续的变量,并同时对变量进行修改,查遍了也没辙。
其他人回答不出什么 ...
Construct a list file, and run in 2 steps, for example,
Assume a is your vector to change name, b is the list for saving the name-vector a ,
a <- vector[length=10] # add your vector for changing name
b <- mapply(list, a) # transform vector to list
for (i in 1:length(x) {
b【【i】】
<- i # assign the value
}
names(b) <- a