(->flyweight dataset
&
{:keys [column-name-seq error-on-missing-values?]
:or {column-name-seq :all error-on-missing-values? true}})
Convert dataset to flyweight dataset. Flag indicates
Convert dataset to flyweight dataset. Flag indicates
(column dataset column-name)
Return the column or throw if it doesn't exist.
Return the column or throw if it doesn't exist.
(remove-column dataset col-name)
Failes quietly
Failes quietly
(select dataset colname-seq index-seq)
Reorder/trim dataset according to this sequence of indexes. Returns a new dataset. colname-seq - either keyword :all or list of column names with no duplicates. index-seq - either keyword :all or list of indexes. May contain duplicates.
Reorder/trim dataset according to this sequence of indexes. Returns a new dataset. colname-seq - either keyword :all or list of column names with no duplicates. index-seq - either keyword :all or list of indexes. May contain duplicates.
(add-column dataset column)
Error if columns exists
Error if columns exists
(update-column dataset col-name update-fn)
Update a column returning a new dataset. update-fn is a column->column transformation. Error if column does not exist.
Update a column returning a new dataset. update-fn is a column->column transformation. Error if column does not exist.
(add-or-update-column dataset column)
If column exists, replace. Else append new column.
If column exists, replace. Else append new column.
(maybe-column dataset column-name)
Return either column if exists or nil.
Return either column if exists or nil.
(columns dataset)
(dataset-name dataset)
(index-value-seq dataset)
Get a sequence of tuples: [idx col-value-vec]
Values are in order of column-name-seq. Duplicate names are allowed and result in duplicate values.
Get a sequence of tuples: [idx col-value-vec] Values are in order of column-name-seq. Duplicate names are allowed and result in duplicate values.
(supported-stats dataset)
Return the set of natively supported stats for the dataset. This must be at least #{:mean :variance :median :skew}.
Return the set of natively supported stats for the dataset. This must be at least #{:mean :variance :median :skew}.
(from-prototype dataset table-name column-seq)
Create a new dataset that is the same type as this one but with a potentially different table name and column sequence. Take care that the columns are all of the correct type.
Create a new dataset that is the same type as this one but with a potentially different table name and column sequence. Take care that the columns are all of the correct type.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close