Liking cljdoc? Tell your friends :D
Clojure only.

tablecloth.time.api.adjust-frequency


adjust-frequencyclj

(adjust-frequency dataset converter)
(adjust-frequency dataset
                  converter
                  {:keys [include-columns ungroup? rename-index-to]
                   :or {ungroup? false}})

Adjusts the frequency of the time index column by applying the converter function to the values in the time index. Returns a grouped dataset that can be used with tablecloth.api.aggregate, for example.

Options are:

  • rename-index-to - Rename the index column name
  • ungroup? - Set to true if you want the function to return a grouped dataset. Default: false
  • include-columns - Additional columns to include when adjusting when grouping at a new frequency.
Adjusts the frequency of the time index column by applying the
`converter` function to the values in the time index. Returns a
grouped dataset that can be used with `tablecloth.api.aggregate`,
for example.


Options are:
- rename-index-to   - Rename the index column name 
- ungroup?          - Set to true if you want the function to return a
                      grouped dataset. Default: false
- include-columns   - Additional columns to include when adjusting when
                      grouping at a new frequency.
sourceraw docstring

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

× close