Re: [R] How to store a triangular matrix

From: David Winsemius <dwinsemius_at_comcast.net>
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

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive