mmaul / clml

Common Lisp Machine Learning Library
Other
259 stars 36 forks source link

Add support for alternate csv delimiters #35

Closed sstoltze closed 6 years ago

sstoltze commented 6 years ago

Reading and writing .csv files can now be customized to use any character as a delimiter instead of being locked to #\,

I have some numeric data containing commas, so I was unable to use clml.hjs.read-data:read-data-from-file to read it. I have added a keyword :csv-delimiter to the relevant read/write funtions in clml.hjs.read-data and the keyword :delimiter to the relevant funtions in clml.utility.csv, with all of them defaulting to the comma to prevent existing code from being affected.

mmaul commented 6 years ago

Well technically you could have wrapped your call with a local definition of csv-seperator. But I do like your implementation with explicit parameters better. Thanks