Organise vector as matrix with triangle structure. Useful for reserving data. It may be easy to input data as vector. This function organises data in "CL"-format, which is a cohort-age (policy year-development) year matrix

1 | ```
vector.2.triangle(v,k)
``` |

`v` |
vector. Length k*(k+1)/2 |

`k` |
integer. Dimension |

The value is a list in `apc.data.list`

format.

`m` |
matrix with "CL" format Dimension kxk. Upper left triangle filled by v, row by row. Remaining entries NA |

Bent Nielsen <bent.nielsen@nuffield.ox.ac.uk> 7 Feb 2015

1 2 3 | ```
#########################
vector.2.triangle(1:10,4)
``` |

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.