leeper / prediction

Tidy, Type-Safe 'prediction()' Methods

Home Page:https://cran.r-project.org/package=prediction

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add rbind argument to build_datalist()

leeper opened this issue · comments

  • An rbind = FALSE default argument would return the current data structure. rbind = TRUE would pass that through do.call("rbind", x) to return a single data frame.
  • Add this to calls within prediction() methods. That should improve performance by eliminating the for-loop.

(But, unfortunately, for calculating variances in margins::margins(), we still need to loop over the list.)