Liking cljdoc? Tell your friends :D

tupelo.csv

Utils for reading CSV (comma-separated-value) formatted files.

Utils for reading CSV (comma-separated-value) formatted files.
raw docstring

col-vecs->row-mapsclj

(col-vecs->row-maps col-vecs)

<TEMP> Converts a map of column-vectors into a sequence of row-maps

<TEMP> Converts a map of column-vectors into a sequence of row-maps
sourceraw docstring

parse-csv->col-vecsclj

(parse-csv->col-vecs csv-input & {:as opts})

[csv-input & {:as opts} ] Returns a map constructed from the columns of csv-input. The first line is assumed to be column label strings, which are (safely) converted into keywords. The returned map has one entry for each column label keyword. The corresponding value for each keyword is a vector of string data taken from each subsequent line in the file. See tupelo.csv/parse-csv->row-maps for options.

[csv-input & {:as opts} ] 
Returns a map constructed from the columns of csv-input.  The first line is
assumed to be column label strings, which are (safely) converted into keywords. The
returned map has one entry for each column label keyword. The corresponding value for
each keyword is a vector of string data taken from each subsequent line in the file.
See tupelo.csv/parse-csv->row-maps for options.
sourceraw docstring

parse-csv->row-mapsclj

(parse-csv->row-maps csv-input & {:as opts})

[csv-input & {:as opts} ] Returns a lazy sequence of maps constructed from csv-input. The first line is assumed to be column label strings, which are (safely) converted into keywords. String data from each subsequent line is paired with the corresponding column keyword to construct a map for that line. Default delimiter is the comma character (i.e. ,) but may be changed using the syntax such as:

(parse-csv->row-maps <csv-data-src> :delimiter | )

to select the pipe character (i.e. |) as the delimiter.

[csv-input & {:as opts} ] 
Returns a lazy sequence of maps constructed from csv-input.  The first line
is assumed to be column label strings, which are (safely) converted into keywords.
String data from each subsequent line is paired with the corresponding column keyword to
construct a map for that line.  Default delimiter is the comma character (i.e. \,) but 
may be changed using the syntax such as: 

  (parse-csv->row-maps <csv-data-src> :delimiter \| )

to select the pipe character (i.e. \|) as the delimiter.  
sourceraw docstring

row-maps->col-vecsclj

(row-maps->col-vecs row-maps)

<TEMP> Converts a sequence of row-maps into a map of column-vectors

<TEMP> Converts a sequence of row-maps into a map of column-vectors
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close