Hi everyone a have a dataframe of dimension 1x147,216 (quite large) and I want to calculate a correlation matrix:
similarity = cor(datExpr, method="spearman")
but I receive the error message
"Error: cannot allocate vector of size 161.5 Gb"
I checked all the following recommended solutions but none worked:
memory.limit(size=)
or
if(.Platform$OS.type == "windows") withAutoprint({
memory.size()
memory.size(TRUE)
memory.limit()
})
memory.limit(size=170000000)
Anyone has any idea? Has anyone used a sparse matrix for solving this?