philmikejones / rakeR

Tools for easy spatial microsimulation (raking) in R
http://philmikejones.github.io/rakeR/
11 stars 1 forks source link

Extend integerise to higher (>2) dimensions #44

Closed virgesmith closed 7 years ago

virgesmith commented 7 years ago

Since integerise only uses the total population constraint, it should be straightfoward to extend the function to accept arrays of arbitrary dimension

philmikejones commented 7 years ago

I'm not sure I want to implement this; the point of the functions is to take standard inputs (data frames) and produce a standard output (a data frame again).

Is there an example use-case where this would be beneficial, or that n-dimensional arrays can solve a problem a data frame input cannot?

virgesmith commented 7 years ago

No I don't have a use case. Cant remember what I was thinking/needing to solve at when I raised this now anyway. Closing.

philmikejones commented 7 years ago

No worries. If you suddenly recall something feel free to open again.