Liking cljdoc? Tell your friends :D

com.eldrix.deprivare.odf


sheet-dataclj

(sheet-data f table-name & {:keys [headings pred] :or {pred (constantly true)}})

Returns data from the sheet specified as a sequence of maps. Parameters:

  • f : anything coercible by [[clojure.java.io/as-file]]
  • table-name : name of spreadsheet table Options:
  • headings : keys for each value
  • pred : predicate, for rows to include

If no headings are specified, the first row will be used.

Some spreadsheets are not correctly organised. For example, some have a row or two at the top with information about the dataset. This is frustrating and makes them more difficult for machine-reading. The predicate is designed to help screen out such rows.

Returns data from the sheet specified as a sequence of maps.
Parameters:
 - f          : anything coercible by [[clojure.java.io/as-file]]
 - table-name : name of spreadsheet table
Options:
 - headings      : keys for each value
 - pred          : predicate, for rows to include

If no headings are specified, the first row will be used.

Some spreadsheets are not correctly organised. For example, some have a row or
two at the top with information about the dataset. This is frustrating and
makes them more difficult for machine-reading. The predicate is designed
to help screen out such rows.
sourceraw docstring

sheet-namesclj

(sheet-names f)

Returns the sheet names from the opendocument file specified. Parameters:

  • f : anything coercible to a file using [[clojure.java.io/as-file]]
Returns the sheet names from the opendocument file specified.
Parameters:
 - f  : anything coercible to a file using [[clojure.java.io/as-file]]
sourceraw docstring

sheet-rowsclj

(sheet-rows f table-name)

Return the rows from the sheet named. Parameters:

  • f : anything coercible by [[clojure.java.io/as-file]]
  • table-name : name of table
Return the rows from the sheet named.
Parameters:
 - f          : anything coercible by [[clojure.java.io/as-file]]
 - table-name : name of table
sourceraw docstring

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

× close