# Load Library library(metaSEM) # Manually changed the extension of .Rdata file to .txt to upload # Changing the extension back to .Rdata # setting working directory setwd("/Users/aman/Desktop/test/") files <- list.files(pattern="*.txt") newfiles <- gsub(".txt$", ".Rdata", files) file.rename(files, newfiles) # read .Rdata file load("/Users/aman/Desktop/test/MatrixList.Rdata") # Use Cor2DataFrame m.df <- Cor2DataFrame(MatrixList$data, MatrixList$n)