(sheet-data f table-name & {:keys [headings pred] :or {pred (constantly true)}})
Returns data from the sheet specified as a sequence of maps. Parameters:
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.
(sheet-names f)
Returns the sheet names from the opendocument file specified. Parameters:
Returns the sheet names from the opendocument file specified. Parameters: - f : anything coercible to a file using [[clojure.java.io/as-file]]
(sheet-rows f table-name)
Return the rows from the sheet named. Parameters:
Return the rows from the sheet named. Parameters: - f : anything coercible by [[clojure.java.io/as-file]] - table-name : name of table
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close