Código da aula:
temperaturas <- matrix(c(25, 30, 22, 28, 18, 20, 15, 22, 28, 32, 30, 35, 10, 15, 8, 12, 28, 25, 20, 22), nrow = 4, ncol = 5, byrow = TRUE)
rownames(temperaturas) <- c(‘1 Tri’, 2 Tri’, 3 Tri’, 4 Tri’)
colnames(temperaturas) <- c(‘SP’, ‘BA’, ‘PA’, ‘MG’, ‘RS’)
Meu código para conseguir executar:
temperaturas <- matrix(c(25, 30, 22, 28, 18, 20, 15, 22, 28, 32, 30, 35, 10, 15, 8, 12, 28, 25, 20, 22), nrow = 4, ncol = 5, byrow = TRUE)
rownames(temperaturas) <- c("1 Tri", "2 Tri", "3 Tri", "4 Tri")
colnames(temperaturas) <- c("SP", "BA", "PA", "MG", "RS")