Add impute to encoding
Add impute parameters to an encoding
vl_impute_x( spec, frame = NULL, keyvals = NULL, method = NULL, value = NULL, .object = NULL ) vl_impute_y( spec, frame = NULL, keyvals = NULL, method = NULL, value = NULL, .object = NULL )
An input vega-lite spec
A frame specification as a two-element array used to control the window over which the specified method is applied. The array entries should either be a number indicating the offset from the current data object, or null to indicate unbounded rows preceding or following the current data object. For example, the value
[-5, 5]indicates that the window should include five objects preceding and five objects following the current object.
[null, null]indicating that the window includes all objects.
Defines the key values that should be considered for imputation. An array of key values or an object defining a number sequence.
If provided, this will be used in addition to the key values observed within the input data. If not provided, the values will be derived from all unique values of the
encoding, the key field is the x-field if the y-field is imputed, or vice versa.
If there is no impute grouping, this property must be specified.
The imputation method to use for the field value of imputed data objects. One of
The field value to use when the imputation
Directly input an object, rather than creating one via the other arguments. Should not be used in conjunction with the other arguments other than
spec. Objects can be of type: ImputeParams