我想为10个变量分配相同的值,例如
v1 <- 1:10 v2 <- 1:10 .... v10 <- 1:10 eval(paste("v",1:10,"<-","1:10",sep="")) #can not get the result
如何在R中以智能方式为多个变量分配相同的值?
r
r ×1