leeper / prediction

Tidy, Type-Safe 'prediction()' Methods
https://cran.r-project.org/package=prediction
Other
89 stars 14 forks source link

Allow at to be a data frame #21

Closed leeper closed 6 years ago

leeper commented 6 years ago

Currently the at argument only accepts a list of levels. If this were instead a data frame of desired levels, it could simplify things a bit if people only want some combinations of levels (rather than all of them).

Should be a simple conditional statement here: https://github.com/leeper/prediction/blob/master/R/build_datalist.R#L129

Plus documentation fixes throughout and in {margins}.