[R] how to combine apply and which or alternative ways to do so

2013-08-23 Thread Guillaume Bal
Dear useRs, I am currently doing some data cleaning and data manipulation and I have the following problem. I have two vectors. Let say the size of the first one is 10 000 (vector 1) and the size of the second one is 1 000 000 (vector 2). I need to know for each cell of vector 1 which cells of v

Re: [R] Creating tiff with 1200 dpi

2012-10-03 Thread Guillaume Bal
I also had a lot of trouble to create the figs exactly as I want then using R alone. Now, I generally create a postscript image in R and I use gimp after so I can easily modify the resolution. On 10/3/2012 11:56 AM, David Winsemius wrote: On Oct 3, 2012, at 11:52 AM, David Winsemius wrote:

Re: [R] Finding the column with the maximum value by row

2012-07-17 Thread Guillaume Bal
Hi, You should be able to reach your goal using functions "which" and "apply" On 7/17/2012 3:03 PM, Christopher Desjardins wrote: Hi, Let's say I have the following data: a=matrix(c(1,2,4,4,2,1,1,2,4),nrow=3,byrow=T) a [,1] [,2] [,3] [1,]124 [2,]421 [3,]1