4.11. create a diagonal matrix Notes | R Programming BDS | TU | TABFlux