kigubkur.io.writers
I/O: Writing function
save
(require '[kigubkur.io [writers :refer [save]]])
kigubkur© matrices are saved as tab-separated value file.
Examples
Save a matrix
=> (save "mydata/a_matrix.tsv" [[1 2 3 4 5][6 7 8 9 10][11 12 13 14 15][16 17 18 19 20]])
Save row vector
=> (save "mydata/a_row.tsv" [[1 2 3 4 5 6 7 8 9 10]])
To save any number of rows such that they have the same order
=> (save "mydata/all_rows.tsv" [[1 2 3 4 5]] [[6 7 8 9 10]] [[11 12 13 14 15]] [[16 17 18 19 20]])
Save column vector
=> (save "mydata/a_column.tsv" [[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]])
To save any number of columns such that they have the same order
=> (save "mydata/all_columns.tsv" [[1] [2] [3] [4] [5]] [[6] [7] [8] [9] [10]]
[[11] [12] [13] [14] [15]] [[16] [17] [18] [19] [20]])
save
(save filename & args)
Given a filename and arguments (single matrix, m number of rows or n number of columns, this function saves them into a tab-separated value file.