Integer/factor/character vector of groups. Also, can be a named list of such vectors.
For univariate distributions, the list should only have one vector.
For conditional distributions, the list needs two or more equal-length vectors.
h
Optional numeric vector of frequencies (or weights). The length of n should equal the length of the g vectors.
conditions
An integer vector of category indices, a character vector of category names, or a list which can contain either integers (indices) or strings (names).
The vector or list can be named (which is preferable) or unnamed.
If named, then the names are matched against the variable names.
If unnamed, then the first condition applies to the first variable, and the second condition applies to the second variable, and so on.
Note that the number of conditions needs to equal the number of variables minus one.
freq
Logical, if true, the resulting function object returns frequencies, by default.
warning
Logical, if true, generate warning if there's no observations within the conditional window.
Except:
The constructors for conditional distributions, return NULL, if there's no observations within the conditional window.
(And by default, generate a warning).
Details
Refer to the vignette for more information.
References
Refer to the vignette for an overview, references and better examples.