library(tidyr)library(dplyr)library(tibble)# Converting the matrix to a data frame for tidyverse manipulationtemperature_df<-as.data.frame(temperature_matrix)# "Transposing" the matrix by converting to long then wide formattransposed_df<-temperature_df%>%rownames_to_column(var="Day")%>%pivot_l...