Add missing rows or columns based on names and Duplicates rows and columns of a given a data frame.
squaretize(x, fill = 0, reorder = TRUE)
x | an object to be coerced into matrix. |
---|---|
fill | character string used to fill the additional rows and/or columns. |
reorder | a logical. Should names must be used to order rows and columns? |
A square matrix.