Loop over a file connection. for(i in 1:n) {. tmp <- scan(file=con, nlines=1, quiet=TRUE). ## do something on a line of data. }.
確定! 回上一頁