[R] matrix indexing (igraph ?)

2011-08-02 Thread Robinson, David G
I realize that matrix indexing has been addressed in various flavors, but I'm stumped and didn't find anything in the archives. It's not clear if it is an igraph issue or a more general problem. Thanks in advance for your patience. I am using igraph to read a gml file

[R] read.graph: vertex labels in GML file?

2011-06-10 Thread Robinson, David G
I can successfully read a GML file using read.graph (e.g. those at http://www-personal.umich.edu/~mejn/netdata/ , the football data set in particular). However, I don't seem to be able to read the vertex labels that are in the GML file; or maybe I am, but I cannot get at them? I suspect I'm not

Re: [R] Parallel processing question ...

2011-02-09 Thread Robinson, David G
in the resulting list. Thanks again for taking the time to try to figure this out. Cheers, Dave On 2/8/11 7:47 PM, Steve Lianoglou mailinglist.honey...@gmail.com wrote: Hi, On Tue, Feb 8, 2011 at 6:18 PM, Robinson, David G dro...@sandia.gov wrote: I am experimenting with parallel processing

[R] Parallel processing question ...

2011-02-08 Thread Robinson, David G
I am experimenting with parallel processing using foreach and seem to be missing something fundamental. Cool stuff. I've gone through the list and seen a couple of closely related issues, but nothing I've tried seems to work. I know that the results from foreach are combined, but what if there is

Re: [R] MCMC object indexing

2011-01-20 Thread Robinson, David G
Stoker, Ben wrote: A reproducible example would be very useful. In general I find that I can just index an mcmc object as though it were a matrix, e.g.: z - cbind(a=runif(20),b=runif(20),c=runif(20)) library(coda) m - mcmc(data=z) t(apply(m,2,quantile,c(0.025,0.975))) If that sort

[R] MCMC object indexing

2011-01-19 Thread Robinson, David G
I have an mcmc object and I'm trying to plot the quantiles of the variables - and not as a function of the iterations as in cumuplot. I cannot seem to find the right combination of indexing to access the variables; after which I'm sure I can plot all the statistics I could hope for. Any hints

Re: [R] Data frame/read.ftable

2009-12-03 Thread Robinson, David G
David, Great! 'split' is something I didn't even look at. Owe you one. Many thanks, Dave On 12/2/09 7:29 PM, David Winsemius dwinsem...@comcast.net wrote: On Dec 2, 2009, at 7:02 PM, Robinson, David G wrote: My apologies for this question but I'm stuck and I'm sure that there must

[R] Data frame/read.ftable

2009-12-02 Thread Robinson, David G
My apologies for this question but I¹m stuck and I¹m sure that there must be an easy answer out there (and hope that someone will have mercy and point me in the right direction). I have a data file that looks like: 1 77 3 1 8 1 1 7 2 1 1 5 1 42 7 1 0 2 1 23 1 2 83 9 2 8 2 2 6 5 2 23 3 3 11 3 3 8