`sq_matrix`

takes a vector and converts it into a
square matrix.

1 |

`data` |
Object (probably vector) to be turned into square matrix |

`byrow` |
Whether to fill in the matrix by row or by column |

A matrix with the same number of columns and rows

`link{matrix}`

1 2 3 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.