[R] Matrix manipulation

2011-04-01 Thread Joseph N. Paulson
Hi all! I have a vector, let's say for example int - sample(1:20,10); for now: now I have a matrix... M = m x n where the first column is a feature column and most likely shares at least one of the int (interesting) numbers. I want to extract the rows where int[] = M[,1] I thought:

Re: [R] C module causing rounding errors?

2010-07-09 Thread Joseph N. Paulson
at 6:18 AM, Duncan Murdoch murdoch.dun...@gmail.comwrote: Joseph N. Paulson wrote: Hi all! I am currently writing a C-module for a for loop in which I permute columns in a matrix (bootstrapping) and I send a couple of variables into C initially. All of it is working, except the initial

[R] C module causing rounding errors?

2010-07-08 Thread Joseph N. Paulson
Hi all! I am currently writing a C-module for a for loop in which I permute columns in a matrix (bootstrapping) and I send a couple of variables into C initially. All of it is working, except the initial values I send to R are rounded/truncated (I believe rounded). I am using a 32 bit machine to