tech.v3.dataset.clipboard
Optional namespace that copies a dataset to the clipboard for pasting into applications such as excel or google sheets.
Reading defaults to 'csv' format while writing defaults to 'tsv' format.
clipboard->dataset
(clipboard->dataset & [{:keys [file-type], :or {file-type :csv}, :as options}])
Copy from the clipboard to a dataset. Options are passed into ->dataset,
and :file-type
is defaulted to :csv
.
dataset->clipboard
(dataset->clipboard x & [{:keys [file-type], :or {file-type :tsv}}])
Copy a dataset to the clipboard. File type is defaulted to 'tsv' as this appears to have wider compatibility across various spreadsheet toolkits.