[R] automation question

2009-07-31 Thread RRRRRRRRRR!
I have columns in two tables that need to be compared in order to get a statistic. The function calculating the statistic is somers2. Here are the two columns I must calculate, row by row. name1 name2 1 Pred_pres_a_indpdt[,3,,] population[,23] 2

Re: [R] automation question

2009-07-31 Thread stephen sefick
look at the apply family of functions and look at the MARGIN argument. On Fri, Jul 31, 2009 at 2:30 PM, RR!cwal...@usgs.gov wrote: I have columns in two tables that need to be compared in order to get a statistic. The function calculating the statistic is somers2. Here are the two