在R语言中将字符串转化为同名变量名的函数get() a <- 1 b <- 2 c <- 3 sequence <- c('a', 'b', 'c') for (var in sequence){print(get(var) + 10)} 屏幕输出函数cat(),print(),format(),write() cat("the total number is:",3+5,"\n") print(x, ...) ?print ?cat ?format...