I\'m trying to find the correlations with this function but I just get NA for each input:
corr <- function(directory, threshold = 0) { filenames <- list
The function cor has an argument use, which controls how it deals with missing observations, i.e. NAs. You might try setting it to use = "complete.obs".
cor
use
NA
use = "complete.obs"