I have data in TSV (tab-separated) files. The thing is, columns do not have headers. Importing data is as easy as
ds = Import["foo.tsv", {"Dataset"}];
Import
even correctly deduces integer data type for integer-only columns. The problem is, the resulting dataset does not have column names. I know what the columns are, but I cannot find a way to add names during import, short of disassembling and reassembling the dataset (this answer provides very good working recommendations, including benchmarks), but the data size is not negligible). Is what I want possible? I am using MMA 11.3.0 on Windows.
TSV format has an Export option "TableHeadings"
; I tried that for Import, but nothing happened, columns are still unnamed:
(* This does NOT work. *)
Import["foo.tsv", {"Dataset"}, "TableHeadings" -> {"a", "b", "c"}]