Displaying 20 results from an estimated 4000 matches similar to: "sna package: how to use dataframes"
2006 Apr 20
1
sna package: how to import data in linked list format
Hello,
I have several "linked list" format network files that I'd like to read into R. Although I found a function to export files in .dl format, I could not find a function to read files in such format.
Is there any quick way to read linked-list format files into R?
Thank you very much.
Jorge Colazo
PhD Student
University of Western Ontario
[[alternative HTML version deleted]]
2006 Oct 31
2
information about sna packages
Hello,
I'm a student who want to use the R social network analysis package. I have
a question: can this package analyse dynamical networks (network changing
over time)? I didn't find this functionality in the package's user manual.
Thank you
Davide
[[alternative HTML version deleted]]
2006 Mar 01
2
Weighted networks and multigraphs
I would like to apply network measures (such as betweenness centrality,
upper boundedness, etc.) to a weighted graph with non-integer weights,
defined by a euclidean distance matrix. The package sna provides the
measures that I want to use, but seems only to operate on binary graphs.
I have read work by Mark Newman
(http://aps.arxiv.org/abs/cond-mat/0407503/), who suggests that a
weighted graph
2008 May 09
3
For Social Network Analysis-Graph Analysis - How to convert 2 mode data to 1 mode data?
Hi,
Does anyone know of a package in R that has a function to convert
network data (e.g. an adjacency matrix or ) from 2-mode to 1-mode? I am
conducting social network analysis. I know that Pajek has this function
under Net --> Transform --> 2-mode to 1-mode --> Rows. I have searched
the documentation under packages 'sna', 'network', 'igraph', and
2007 Feb 13
4
Advice on visual graph packages
Hey, all. I'm looking for packages that are good at two things
1) Drawing directed graphs (i.e nodes and edges), both with single
and double headed arrows, as well as allowing for differences in line
width and solid versus dashed. Note: I've tried Rgraphviz here, but
have run into some problems (which seem fixable and I may go with it
in the end), and it doesn't satisfy need
2007 Aug 28
4
Nodes & edges with similarity matrix
Hello,
I apologise if someone has already answered this but I searched and
googled but didn't find anything.
I have a matrix which gives me the similarity of each item to each
other. I would like to turn this matrix into something like what they
have in the graph package with the nodes and edges.
http://cran.r-project.org/doc/packages/graph.pdf . However I cannot find
a method to
2009 Apr 29
1
Hierarchical Diagram of Networks in sna or otherwise?
I've been using sna to work with some networks, and am trying to visualize
them easily. My networks are hierarchical (food webs). All of the layout
engines I've tried with gplot don't seem to plot hierarchical networks, as
one would using dot from graphviz. While I could do all of this by
outputting to dotfiles and running it through graphviz, the graphics I get
from R are much
2007 May 09
3
Removing a list of Objects
Hi,
I have a simple beginner's question on removing a list of
objects. Say I have objects C243.Daily1, C243.Daily2...C243.Daily5 in my
workspace. I'd like to remove these without using rm five times.
So I write.
> a <- list(paste("C243.Daily",sep="",1:5))
> rm(a)
Obviously this wouldn't work, as it would only remove the object a.
But is there any way
2007 Oct 08
2
graph or svn
Hello all,
I'm having a spot of trouble. I have made a very nice distance
matrix from some comparison calculations. However, the matrix is 3096 x
3096, so it's relatively large. Currently I'm using the svn package as
it seems to work for my data. The graph package errors and says the
"adjacency matrix must be symmetric for undirected graphs". I though
3096 x 3096 was
2008 Dec 26
2
question about SNA in R, thanks!
Dear colleagues,
I'm trying to have a look at the Assortative and Disassortative (
http://en.wikipedia.org/wiki/Assortative_mixing) of the network I have.
But it seems that the igraph hasn't mentioned that yet.
I have to get the in/out degree of the vertices of each edge and calculate
the Pearson's Correlation coefficient which seems to be quite a huge task
for me. :(
So I wonder if
2006 Nov 20
1
SNA packages/network package
Hello everyone,
I am an italian student who is working with packages SNA (social network
analysis) and network.
I ask you if there is a simple way to write a R-script using these packages
to extract from an adjacency matrix the following things:
-number of cliques which are in the network;
-number of k-cores (e.g. 3-cores, 4-cores);
-cycles (e.g. 3-cycles, 4-cycles)
-hub & authorities.
2006 Feb 15
1
power law
Dear list,
Does anyone know how to fit the power law distribution?
I have the empirical distribution and would like to check whether it fits
power law (with the power estimated from the data).
Any hints are appreciated
Best regards
Galina
[[alternative HTML version deleted]]
2007 Sep 14
6
replace NA value with 0
Hi,
how can I replace NA value with 0:
1991 217 119 103 109 137 202 283 240 146 NA
1992 270 174 149 144 166 239 278 237 275 NA
1993 146 111 104 89 98 131 153 148 175 NA
1994 177 123 146 124 121 200 266 191 240 106
1995 145 98 95 89 95 130 183 161 164 129
1996 145 98 89 90 93 138 158 131 161 161
1991 217 119 103 109 137 202 283 240 146 0
1992 270 174 149 144 166 239 278 237
2007 Nov 21
4
NA values
Hi all!
I am new to R and I would like to ask you the following question:How
can I substitute the NA values with 0 in a data frame? I cannot find a
command to check if a value is NA...
Thank you very much!
Eleni
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 <-
2007 Feb 22
1
how to install a package in R on a linux machine?
I downloaded the tar.gz file from r-project website (and saved it in a local
directory) and wish to use the package in R.
But I am not sure how to use the install.packages command. I tried a few
times and still couldn't figure out the correct way to install this package.
[[alternative HTML version deleted]]
2007 Oct 27
2
How to generate all permutation of 0-1 sequences in R?
Hi, folks:
I need to generate all 0-1 sequences with given length,say,n=3, the ideal
result would be
the following matrix:
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Any help would be appreciated.
--
View this message in context: http://www.nabble.com/How-to-generate-all-permutation-of-0-1-sequences-in-R--tf4704377.html#a13446919
Sent from the R help mailing list archive at Nabble.com.
2008 Jan 05
2
Cumulative sum of vector
Hi,
Maybe I have not been looking in the right spot, but, I have not been
able to fine a command to automatically calculate the running
cumulative sum of a vector. Is there such a command?
Example of current code:
> eig$values
[1] 678.365651 6.769697 2.853783
> prop<-eig$values/sum(eig$values)
> prop
[1] 0.986012163 0.009839832 0.004148005
>
2006 Jan 27
3
substituting an object not found
Is there any function in R like
is.not.found(x, y)
meaning if you can't find object x, then use object
y??
Mikkel Grum
2006 Apr 23
1
converting similarity matrix formats
Dear all,
I am using a program that generates similarity matrices in the following
non-redundant pairwise format.
a b 0.4
a c 0.5
a d 0.3
b c 0.9
b d 0.6
c d 0.2
matrix(c('a','a','a','b','b','c','b','c','d','c','d','d',.4,.5,.3,.9,.6,.2),byrow=F,nrow=6)
I would like to convert this to a