Message-ID: <815b70590612051417ga74d036g12822d94e7ec8189@mail.gmail.com>
Date: 2006-12-05T22:17:54Z
From: David Barron
Subject: incidence and adjacency matrix conversion
In-Reply-To: <4575E4DA.6040808@uni-konstanz.de>
I think you can do this using the network package. Look at the
as.network.matrix and as.matrix.network functions, for example.
On 05/12/06, Philip Leifeld <Philip.Leifeld at uni-konstanz.de> wrote:
> Dear all,
>
> how can I convert an m x n incidence matrix into an m x m adjacency
> matrix or an n x n adjacency matrix? The current matrix contains binary
> data, hence the new matrix would contain counts of common occurrences.
>
> Thank you for your help.
>
> Phil
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
--
=================================
David Barron
Said Business School
University of Oxford
Park End Street
Oxford OX1 1HP