You can use the index numbers of the rows and columns, and combine the value with the modulo operator %% like this: n = 5 mat <- matrix(nrow ...
確定! 回上一頁