I'm using the following code
function(x,y) { RecordLinkage::levenshteinSim(x,y) }
to calculate the percent similarity between 2 inputs.
So far I decided to store the results in a matrix
matrix=outer(matext_vec,matext_, FUN=myfun)
But because my vector is so long the matrix gets too big in regards to memory.
Could I put in a threshhold saying, that only if the value is bigger than e.g. 0.9 a list should be created putting in the value as well as the inputs, that led to the value.