标签: r loops matrix na
r1_matrix<-as.matrix(cldmsk_final[[1]]) nr <- nrow(r1_matrix) # nrow = 100 nc <- ncol(r1_matrix) # ncol = 100 for(i in 1:nr){ for(j in 1:nc){ } }