Displaying 20 results from an estimated 9000 matches similar to: "adjacency matrix"
2000 Sep 19
3
coerce mode list?
Dear R/S users;
I'm using S+ version 4 Release 3.
and I am trying to do a simple calculation like the
following :
> X1<-X[1:5]
> W1<-W[1:5,1:5]
> X1
[1] 1.250000 1.292308 1.176471 0.937500 1.538462
> W1
VAR00003 VAR00004 VAR00005 VAR00006 VAR00007
1 0 1 0 1 0
2 1 0 0 0 1
3 0 0 0
2011 Aug 13
3
Adjacency Matrix help
I have created an adjacency matrix but have not been able to figure something
out. I need to put zeros on the diagonal of the adjacency matrix. For
instance, location (i,i) to equal 0. Please help. Thanks
--
View this message in context: http://r.789695.n4.nabble.com/Adjacency-Matrix-help-tp3740946p3740946.html
Sent from the R help mailing list archive at Nabble.com.
2012 Nov 19
0
R SNA: Creating a adjacency matrix containing all actors but only values of a subset
1 down vote favorite
my problem is the following:
I am using the R SNA package for social network analysis. Lets say, my
starting point is an edgelist with the following characteristics. Every row
contains a firm name, the ID of a project they are involved and further
characteristics, let's say the projects year. Firms can be in several
projects, and one project can consist of a
2008 Feb 27
1
how to convert a table to adjacency matrix used in social network analysis?
Hi Guys,
Do you any one know how to convert a long format table to an adjacency
matrix used in sna? The long table looks like
p1 p2 counts
a b 100
a c 200
a d 100
b c 80
b d 90
b e 100
c d 100
c e 40
d e 60
and I want to convert it to an adjacency matrix which can be used in sna?
Any methods will be appreciated!
btw, besides sna package, is there any better package can be used in social
2010 Jul 08
2
hi... problems about adjacency matrix
Dear all,
Hi, I have the problems about converting the matrix to adjacency matrix.Here's my example,
a b c d e fa 1.0000000 0.4048823682 0.1228531 0.49046991 0.4945158868 0.307443317b 0.4048824 1.0000000000 0.4367475 0.96949219 0.0007378596 0.560747765c 0.1228531 0.4367474719 1.0000000 0.40037341 0.3157538204
2007 Apr 15
0
correlation between multiple adjacency matrix graphs
I'm looking for a way to do (product moment) graph correlation
between multiple unlabeled graphs G to Gn. Basically I have 900
individual samples of a 48x48 adjacency matrix which I've listed as a
3rd dimension of a single array. So it looks something like [48,48,i]
where i is each individual subject's adjacency matrix.
If i run the gcor function on any two graphs for example
2006 Dec 05
4
incidence and adjacency matrix conversion
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
2013 Feb 05
2
adjacency list to non-symmetric matrix
Dear R community,
is there an easy way to convert an adjacency list (or a data-frame) to a non-symmetric matrix?
The adjacency list has the following form:
person group
1 Sam a
2 Sam b
3 Sam c
4 Greg a
5 Tom b
6 Tom c
7 Tom d
8 Mary b
9 Mary d
I need the data in a matrix with persons as rows and groups as columns:
a b c d
Sam 1 1 1 0
Greg 1 0 0 0
Tom 0 1 1 1
Mary 0 1 0 1
I know that there
2011 Sep 25
4
Trouble creating and adjacency matrix
Hello all,
I'm having trouble creating an adjacency matrix.
Basically, I need to turn the following distance matrix into an adjacency
matrix based on whether values are >1.5 or not. If they are >1.5, then the
returned value should be 0. If they are =<1.5, then the returned value
should be 1.
DistanceMatrix:
A B C D E
[1,]
2013 Mar 12
2
big edge list to adjacency matrix
I have huge list of edges with weights.
a1 b1 w1
a2 b2 w2
a3 b3 w3
a1 b1 w4
a3 b1 w5
I have to convert it into 2 dim matrix
b1 b2 b3
a1 max(w1,w4) 0 0
a2 0 w2 0
a3 w5 0 w3
if edges repeated take the maximum weights. How do this efficiently without
using for loop? Any idea.
thanks
Avi
[[alternative
2006 Feb 18
2
Conversion to Adjacency Matrix
I have data in the following form:
ID COUPON0 COUPON1 COUPON2 COUPON3
1 1 1000 1001 1002
2 2 NA NA NA
3 1000 1003 NA 1004
4 1001 NA 1005 NA
5 1002 NA NA NA
12 1003 NA NA 1006
7 1005 NA NA NA
8 1004 1007 NA NA
9 1006 NA NA NA
26
2008 Mar 05
4
vertex labels in igraph from adjacency matrix
I am getting some unexpected results from some functions of igraph and
it is possible that I am misinterpreting the vertex numbers. Eg., the
max betweenness measure seems to be from a vertex that is not connected
to a single other vertex. Below if my code snippet:
require(igraph)
my.graph <- graph.adjacency(adjmatrix = my.adj.matrix, mode=c("undirected"))
most.between.vert <-
2003 Oct 22
4
adjacency matrix
Dear R experts,
I am new to the list and R software. I need to convert arcview file to Winbugs having R has middle package. Got from friends that it is possible following the steps:
1. Converting arcview shapefile to "cgm clear text file"
2. Downloading "convert.r" to into R
2.1 use source("convert.r")
2.2 convert("filename_cgm") without the
2001 Jan 04
6
regression constraints?
gday R gurus,
I have a multivariate regression for which I want to constrain the
coefficients to be > 0. Is this possible?
I've check the doco and searched CRAN but can't find anything.
thanks,
John Strumila
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send
2000 Jul 20
3
printing hclust with k clusters
howdy R friends,
I've searched CRAN but to no avail... I'm trying to use mva's hclust and
print out for say 10 clusters in batch. How do I do this? It's unclear if
I can use cutree.
thanks,
John Strumila
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send
2000 Aug 31
3
cant find "get"?
howdy gurus,
I was wondering if someone could help me with what looks like a simple
problem.
I found this great function called "get" which allows me to work out my
object name at run time. Unfortunately it's not letting me assign values
with it. What am I doing wrong?
thanks,
John Strumila
> names(get(file.name))[1]
[1] "X14.59.23"
>
2000 Aug 17
2
R on os390
G'day R friends,
I didn't get any replies on the main list so I thought I'd try with the
experts.
I was wondering if anyone's ported R to os390. If so, are the vsize and
nsize limits the same as other platforms?
I could really annoy those SAS guys then.
thanks,
John Strumila
john.strumila@team.telstra.com
2000 Jul 26
3
merge aint merging
g'day R friends,
can anyone please help me with a frustrating merge?
The number of rows of a resulting merge is the smaller of the 2 dataframes
used as input. What am I doing wrong? I'm using 1.1.0 on redhat 6.2
thanks,
John Strumila
> xx[1:10,]
datetime c
948992940 948992940 0
948993000 948993000 0
948993060 948993060 0
948993120 948993120 0
948993180 948993180 0
2000 Feb 24
1
queueing problems
howdy R friends,
I'm new but I used to play with S+ a long time ago. Can someone please help
me with how to approach this?
I have some response time data I want to 'correlate' with other data. I
believe queueing is involved so I need to prove somehow (F test?) that
response ~ exponential(...)
How do I go about this? I cant find exponential in 'nlm' or other
functions.
2000 Mar 03
1
tapply, sorting and the heap
howdy gurus,
I'm new and green and I was hoping for a tiny bit of your expertise.
I'm running out of virtual memory (heap?) when summing using tapply. I've
already used --vsize=90M on my hpux machine. (details below)
Can I pre-sort or something to prevent my error?
thanks,
John Strumila
john.strumila at corpmail.telstra.com.au
> gc()["Vcells","total"]
[1]