i need to create a file with multiple distance matrices separated with an empty line. The output should look like this:
# First matrix
0.05194497
0.04652118 0.12935323
0.04269506 0.09953116 0.08464824
NA NA NA NA
0.02884847 0.07769535 0.05385956 0.04588298 NA
0.03821721 0.12084543 0.13431270 0.06928795 NA 0.05123967
# Empty line
# Second matrix
0.05194497
0.04652118 0.12935323
0.04269506 0.09953116 0.08464824
NA NA NA NA
0.02884847 0.07769535 0.05385956 0.04588298 NA
0.03821721 0.12084543 0.13431270 0.06928795 NA 0.05123967
I have like 100 distance matrixes in a list in R and i need to export them to a txt-file as shown in the above example. Anyone has an idea how to do this? I need a single file and not multiple txt-files.