I’m trying to read csv files using FasterCSV.
I have two problems:
Some of my files have a few lines of comments before the actual
Is there a way to read the whole file at once, for example with
csv = FasterCSV.read(“filename”, opt)
and have the comment lines ignored (either by telling FasterCSV to
ignore the first n lines or giving FasterCSV a string or regular
expression to match the beginning of the header).
Some of my files have no header, but I still would like to read them
as a FasterCSV::Table, rather than an Array of Arrays for ease of column
access and auto-conversion.
How can I do that and is there a way to add a header?