[R] incidence and adjacency matrix conversion

David Barron mothsailor at googlemail.com
Tue Dec 5 23:17:54 CET 2006


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




More information about the R-help mailing list