Re: [R] How to store a triangular matrix

From: David Winsemius <>
Date: Fri, 13 May 2011 11:00:39 -0400

On May 13, 2011, at 10:52 AM, Estefania Ruiz Vargas wrote:

> Hello, I want to create a triangular matrix and only keep the lower
> triangle entries without having to allocate memory for the whole
> matrix, is there any way I can do something like
> A<-matrix(data, nrow=50)
> but for a triangular matrix?

The `Matrix` package implements sparse matrices and has several triangular classes.


David Winsemius, MD
West Hartford, CT

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 13 May 2011 - 15:03:12 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 13 May 2011 - 15:30:06 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive