search for: rmki

Displaying 20 results from an estimated 166 matches for "rmki".

Did you mean: rmk
2011 Nov 22
3
On-demand importing of a package
...that the rowSums() in the base package is called, not the S4 generic in the Matrix package. Why is that? Is there any way to work around this problem, without depending on Matrix? I am doing this on R 2.14.0, x86_64-apple-darwin9.8.0. Thank You, Best Regards, Gabor -- Gabor Csardi <csardi at rmki.kfki.hu>? ?? MTA KFKI RMKI
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
2008 Feb 11
4
Conditional rows
Hi, Given a simple example, test <- matrix(c(0.1, 0.2, 0.1, 0.2, 0.1, 0.1, 0.3, 0.1, 0.1), 3, 3) How to generate row indexes for which their corresponding row values are less than or equal to 0.2 ? For this example, row 2 and 3 are the correct ones. Thanks [[alternative HTML version deleted]]
2008 Jul 11
2
network
Hello I am a relatively new user of R and am struggling to use the 'network' package. I have a correlation matrix (produced using 'cor'), and want to draw a network where each item showing correlation above a threshold (say 0.5) is joined by a green line, and each item showing correlation below a threshold (say -0.5) is joined by a red line. Does anyone have any hints of how to
2012 Aug 15
3
per-vertex statistics of edge weights
I have a graph with edge and vertex weights, stored in two data frames: --8<---------------cut here---------------start------------->8--- vertices <- data.frame(vertex=c("a","b","c","d"),weight=c(1,2,1,3)) edges <-
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
2008 Jan 11
2
Count unique rows/columns in a matrix
Dear List, i know there are some solutions for this in the archive, but they're not very good for numeric matrices, since they usually convert rows/columns to character strings. Is there an easy way to do $subject for numeric matrices properly, or i need to do it by hand? Thanks, Gabor
2008 Jan 26
3
Which R version created a package?
Greetings, R-ians: I would like to know which version or R was used to create a given package. I think I remember seeing that topic discussed recently but cannot find it among my notes. Can anyone tell me how to determine which version of R created a package? Thanks. Charles Annis, P.E. <mailto:Charles.Annis@StatisticalEngineering.com> Charles.Annis@StatisticalEngineering.com
2008 Feb 01
2
re placing values in a matrix
useR's, Consider: y <- c(20, 25, 30) > m <- matrix(c(0.0,1,NA,0.5,1.25,0.75, 0.5, NA, > NA),byrow=TRUE,nrow=3,ncol=3) > m [,1] [,2] [,3] [1,] 0.0 1.00 NA [2,] 0.5 1.25 0.75 [3,] 0.5 NA NA For each numeric value, I want to replace them with their corresponding y-value. The result should look like (here, each row represents a variable rather than the columns):
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
2012 May 13
2
Help with V function in igraph
I am using the code below to output some network measures: central_social <- data.frame(V(s641_social)$name, indegree_social, outdegree_social, incloseness_social, outcloseness_social, betweenness_social, eigen_social) and I get the following error: Error in Re(z) : non-numeric argument to function I know this has to do with V but I cannot figure out what is wrong. s641-social is a graph
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 Apr 22
1
subsetting from C code, do_subset
...e two SEXP's, one for the object and one for the index. I'm thinking of creating an enviroment, place the two SEXP's in it and then just parse and run the corresponding R code, but there might be simpler way... Any hints are appreciated. Thanks, Gabor -- Csardi Gabor <csardi at rmki.kfki.hu> MTA RMKI, ELTE TTK
2006 Apr 23
1
sna package: how to use dataframes
Hi, I an new to R and I realize this may be a silly question, but I searched the manuals and the list archives and can't find the answer. When I read data from R I get a dataframe with labels for rows and columns. SNA however asks for pure adjacency matrices, and if I try to use the dataframe gives an error message. What should do? Thanks a lot Jorge A. Colazo U. of Western Ontario
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
2006 Apr 28
1
displaying numbers not in scientific notation
Sorry for asking such a simple question, but I couldn't find the answer through a search... How can I get R to show me the values of estimates *not* in scientific notation? When I use summary() after using lm() I am getting numbers like 4.485107e-01, when what I want to see is 0.4485.... Thanks, Brian
2006 Jun 15
1
more function in R?
I'm an R newbie and I just have a simple question. I'm using interactive R on a linux box and I'm trying to find out if there's a more or a less function. The data I want to look at is larger then my screen size and all I end up seeing is the last fews line of data. Is there a way that I can paginate through the data and the results of my summary functions? thanks, Heidi
2006 Jun 29
2
R server
Hi, I just installed R in Windows, it seems to me that R is a standalone desktop application. Do you know if R has its server version which could handle multi-users, have several distinct R sessions and their own variables in Unix or Windows? I saw OpenStatServer, RStatServer available, can those handle multi-sessions? Thanks Mike [[alternative HTML version deleted]]
2006 Aug 22
2
Rgraphviz installation Problem
Dear Robert, Thanks for your time. I have downloaded Rgraphviz (windows binary) from www.bioconductor.org and put inside R2.3.0 library then i installed from the local zip its says package 'graph' couldnot be loaded. Am i doing the installation correctly? Still the new user. Can you guide me sir? JJ -- Lecturer J. Joshua Thomas KDU College Penang Campus Research Student, University