search for: mygal_nb1

Displaying 1 result from an estimated 1 matches for "mygal_nb1".

Did you mean: mygal_nb
2005 Dec 29
1
Repeating functions
Hi, I have a number of spatial weight files and using Roger Bivand's spdep, I would like to 1. Convert them into neighbor lists using 2. Convert the neighbor lists into spatial weights For a given file, the syntax would be mygal_nb1 <- read.gal("mygalfile1", override.id = TRUE) myweight1 <- nb2listw(mygal_nb1) I have mygalfile[i] with i from 1 through to 6 and would like to repeat the above two lines through 1 to 6. something like (the syntax below is not correct...just an illustration) for (i in 1:6) { mygal...