[R] Help finding valid permutations

2010-07-09 Thread Michael D
So I have an array A of length n with multiple attributes and for a selected attribute y I need to list all valid permutations where a valid permutation is of the form: A[1,y] != A[n,y] A[i,y] != A[i+1,y] I've tried using the 'combinat' package, but with the vector lengths I'm using the permn func

[R] Reading highest numbered file

2010-09-14 Thread Michael D
I have a bunch of files named "[identifier1].[identifier2].[mmdd].[hhmmss].txt" and im having trouble updating my read script for the timestamp. I've been using file.exists and a for loop but its highly inefficient and cumbersome. Would there be someway to create an object containing the stri

[R] runtime on ising model

2010-10-26 Thread Michael D
So I'm in a stochastic simulations class and I having issues with the amount of time it takes to run the Ising model. I usually don't like to attach the code I'm running, since it will probably make me look like a fool, but I figure its the best way I can find any bits I can speed up run time. As

Re: [R] runtime on ising model

2010-10-26 Thread Michael D
of just pulling one big sample, but since I can get the runtimes under 30 minutes just by removing the storage piece I doubt I would see any noticeable changes by pulling large sample vectors. Thanks, Michael On Tue, Oct 26, 2010 at 6:22 AM, Jim Lemon wrote: > On 10/26/2010 04:50 P

Re: [R] runtime on ising model

2010-10-28 Thread Michael D
> throw > > out its work if the logic comes up FALSE? > > I guess I can always break the for loop up into four parts and store the > > state at the end of each, but thats an unsatisfying solution to me. > > > > > > Jim, I like the suggestion of just p

[R] help with RSQLite adding a new column

2010-12-10 Thread Michael D
I'm new to using sql so I'm having difficulties (and worries) in adding a new column of data to a table I have. Its a very large file (around 5 Gb) which is why I'm having to use SQL I have a table with variables ID, IDrec and IDdes and the variables IDrec and IDdes give a mapping of some other va

Re: [R] stochastic models for population growth

2011-01-23 Thread Michael D
far as an R library you can download and just enter a few parameters... I'm sure there's something in: http://cran.r-project.org/web/views/Environmetrics.html Michael D On Thu, Jan 20, 2011 at 23:57:18 -0800 (PST), Vassily Shvets < shv736_at_yahoo.com >wrote: > > Hello, &

Re: [R] Monte carlo help

2011-03-07 Thread Michael D
The way I see it is that you have a non-homogeneous poisson process to describe the way the students arrive and that you're missing the service time of your tutors. The way you are modeling the arrival of students is *really *bad. At most, only a single student can arrive each hour so to "solve" t

[R] blocked MRPP and ISA

2012-03-28 Thread Whitby, Michael D
I have been trying to find a way to do a blocked MRPP (MRBP) and blocked ISA in R but have not found anything (in fact I found some things that say it is not possible). Does anyone know of a package, or written a script, that can do either of these? Thank you for any help.