al-obrien / farrago

GNU General Public License v3.0
3 stars 0 forks source link

Output more of the provided levels when creating breaks #7

Open al-obrien opened 3 months ago

al-obrien commented 3 months ago

Instead of just returning levels based upon the input data, enforce more of the levels based upon the breaks instead

In create_breaks(), don't index just by the out vector, instead have the levels and labels assigned by the break values as an option.

For example:

    if(all_levels) {
      out <-factor(out, levels = 1:length(brk_labels), labels = brk_labels)
    } else {
         ...
    }