Re: [R] Running a column loop through the Moran.I function.

2011-08-04 Thread R. Michael Weylandt
I'm on my phone so I can't verify this but have you tried the apply function? apply(attri,2,Moran.I,Locate.dists.inv,NA.rm=T) Michael Weylandt On Aug 4, 2011, at 4:54 PM, Scott Seely wrote: > Dear R users, > > I have two data frames that consist of statistical information for most > countries

[R] Running a column loop through the Moran.I function.

2011-08-04 Thread Scott Seely
Dear R users, I have two data frames that consist of statistical information for most countries around the world. One dataframe consists of the latitude and longitude ("coord.csv") of each country, while the other consists of 100's of different attributes ("countryattri.csv") for each country (lik