Since you already have var1 and var2, you could iterate through 3 to 20 with a for loop: for (i in 3:20) { col_name <- paste0("var", ...
確定! 回上一頁