Last chance! 50% off unlimited learning
Sale ends in
Correlation matrix for FBM class matrices (big matrices).
big_cor(x)
An FBM class matrix.
The correlation matrix of the big data x.
The function accepts an Filebacked Big Matrix (FBM) class matrix and returns the correlation matrix. Check you matrix for possible NA values. For more information see the "bigmemory" and "bigstatsr" packages.
# NOT RUN {
dataset <- matrix( runif(100 * 50, 1, 100), ncol = 50 )
write.csv(dataset, "dataset.csv", row.names = FALSE)
x <- pchc::big_read("dataset.csv", header = TRUE)
a <- pchc::big_cor(x) ## No NA values
write.csv(dataset, "dataset.csv")
x <- pchc::big_read("dataset.csv", header = TRUE)
a <- pchc::big_cor(x) ## it contains NA values
# }
Run the code above in your browser using DataLab