Trying to load convergence data to get data.frame with p-values and then plot. However, I get an error stating: Error in seq.default(by, nbFiles, by) : wrong sign in 'by' argument
Currently to get seqFiles code (?):
filesInDir <- list.files(path = paste0(analysisResultsDir, toupper(type), "/"), pattern = "[[:digit:]].RDS", all.files = FALSE, full.names = TRUE, recursive = FALSE, ignore.case = FALSE, include.dirs = FALSE, no.. = FALSE)
nbFiles <- length(filesInDir)
seqFiles <- unique(c(seq(by, nbFiles, by), nbFiles))
I believe the code to get list.files should be :
list.files(path = paste0(permutationResultsDir, "/", toupper(type)), pattern ="[[:digit:]].RDS", all.files = FALSE,full.names = TRUE, recursive = FALSE,ignore.case = FALSE, include.dirs = FALSE, no.. = FALSE)
(since we are counting the number of permutations done, should be go to permutation folder (and not analysis). Placement of "/" in wrong positions, since directory for permuations is: Permu_folder/type/TYPE_permutation_1/RDS )
attempting to run the "corrected" list.files, returns a list of all the permuation files that were performed