[R] find jumps in vector of repeats

2013-10-18 Thread Benton, Paul
Hello all, I'm not really sure how to search for this in google/Rseek so there is probably a command to do it. I also know I could write an apply loop to find it but thought I would ask all you lovely R gurus. I have a very long vector (length=1855190) it looks something like this

[R] resampling for correlation and testing

2012-03-28 Thread Benton, Paul
Hello all R-er, I'm trying to run a resampling method on some data. The current method I have takes 2+ days or a lot of memory . I was wondering if anyone has a better suggestion. Currently I take a matrix and get the correlation matrix from it. This will be called rho.A. Each element in

Re: [R] resampling for correlation and testing

2012-03-28 Thread Benton, Paul
On Mar 29, 2012, at 1:41 AM, ilai wrote: On Wed, Mar 28, 2012 at 3:53 PM, Benton, Paul hpaul.bento...@imperial.ac.uk wrote: Hello all R-er, I'm trying to run a resampling method on some data. The current method I have takes 2+ days or a lot of memory . I was wondering if anyone has

[R] readBin fails to read large files

2011-09-01 Thread Benton, Paul
Posting for a friend Begin forwarded message: From: Geier, Florian florian.geie...@imperial.ac.ukmailto:florian.geie...@imperial.ac.uk Subject: Fwd: readBin fails to read large files Date: September 1, 2011 4:10:53 PM GMT+01:00 To: Begin forwarded message: Date: 1 September 2011 16:01:45

Re: [R] SSOAP chemspider

2011-08-02 Thread Benton, Paul
;) Error in parse(text = paste(txt, collapse = \n)) : text:1:29: unexpected input 1: function(x, ..., obj = new( ‚ ^ On 20 Jul 2011, at 01:54, Benton, Paul wrote: Dear all, I've been trying on and off for the past few months to get SSOAP to work

[R] SSOAP chemspider

2011-07-19 Thread Benton, Paul
Dear all, I've been trying on and off for the past few months to get SSOAP to work with chemspider. First I tried the WSDL file: cs-processWSDL(http://www.chemspider.com/MassSpecAPI.asmx?WSDL;) Error in parse(text = paste(txt, collapse = \n)) : text:1:29: unexpected input 1: function(x, ...,

[R] recursive function - finding connections

2011-07-14 Thread Benton, Paul
Dear all, I'm having some problems getting my recursive function to work. At first I though that maybe my data was too big and I increase option(expressions=5). Then I thought that I would try it on some smaller data. Still not working. :( I would have thought there should be a function

Re: [R] recursive function - finding connections

2011-07-14 Thread Benton, Paul
for undirected graphs. Your matrix is not symmetric, therefore the graph is directed. On 7/14/2011 8:53 AM, Benton, Paul wrote: Dear all, I'm having some problems getting my recursive function to work. At first I though that maybe my data was too big and I increase option(expressions=5

[R] Fwd: comparing heatmaps

2011-03-29 Thread Benton, Paul
Thanks Tom. heatmap.2(mat, Rowv=NA, Colv=NA, col=redgreen, breaks=seq(-1,1,by=0.01), symm=TRUE, trace=none, dendrogram=none) that did the trick :) Begin forwarded message: From: Leja, Thomas Date: 29 March 2011 03:47:59 GMT+01:00 To: Benton, Paul Subject: Re: [R] comparing heatmaps Yep

Re: [R] comparing heatmaps

2011-03-28 Thread Benton, Paul
, Benton, Paul wrote: library(gplots) dat-cor(matrix(rnorm(100, m=10), nrow=10)) mat-cor(matrix(rnorm(100), nrow=10)) dev.new() heatmap.2(mat, Rowv=NA, Colv=NA, col=redgreen(75), symm=TRUE, trace=none, dendrogram=none, main = paste(Correlation Matrix for time

[R] comparing heatmaps

2011-03-27 Thread Benton, Paul
Dear all, I've been trying to find how to compare tow different heatmaps but I'm having trouble getting the colors bar to be the same. I'm doing something like the following: library(gplots) dat-cor(matrix(rnorm(100, m=10), nrow=10)) mat-cor(matrix(rnorm(100), nrow=10)) dev.new()

Re: [R] Learning R

2009-11-30 Thread Benton, Paul
Julia, I can vouch for the 'Statistical Analysis in R'. Very good book, I learnt R from it. The other one to look at is Spoetry. It solves a lot of problem for me. Paul http://www.burns-stat.com/pages/spoetry.html On 30 Nov 2009, at 17:17, Ben Seligman wrote: Hi Julia, I'm also a

[R] RMySQL unique primary key ??

2009-11-30 Thread Benton, Paul
Dear R-guru's, I have some data that I'm writing to a mysql database. I need the database to generate the primary key and it's not being generated as a unique ID. My understanding was that primary keys should be unique. I submit a data.frame with named columns. The only name that it's missing