I would like to get a matrix that contains all $2^p$ combinations of $p$ binary variables. It feels like something that should be a one-liner but I can\'t seem to find this.