create a loop to bring in a matrix csv file convert it to a numeric matrix and then add the matrices together in r
# Read the CSV file into a matrixmatrix1 <- as.matrix(read.csv("matrix1.csv", header = FALSE))
# Convert the matrix to numeric if neededmatrix1 <- as.numeric(matrix1)
# Read the second CSV file into a matrixmatrix2 <- as.matrix(read.csv("matrix2.csv", header = FALSE))
# Convert the matrix to numeric if neededmatrix2 <- as.numeric(matrix2)
# Add the matrices togetherresult_matrix <- matrix1 + matrix2