On Mon, Jul 16, 2012 at 10:36 AM, Lilis Husna <lily_franknich at yahoo.com> wrote:
when i run res <- gw.adapt(cbind(columbus$x, columbus$y), cbind(columbus$x, columbus$y), quant=0.5) there is error message Error: could not find function "gw.adapt" why did it happen?
Who told you about gw.adapt? It seems to now be not exported from the spgwr package, but the help page is still there (Roger: is that a bug? Either you've missed it out of the exports or you've left in the .Rd file!). If you want to use it you can use the triple-colon notation to get an unexported function from a package: res = spgwr:::gw.adapt(cbind(columbus$x,columbus$y),cbind(columbus$x,columbus$y),quant=0.5) Roger may have removed it for a good reason, and possibly put the functionality into another function. But the quick fix would be the triple-colon trick. It's also useful if you give package versions with your questions - here's mine:
packageDescription("spgwr")$Version
[1] "0.6-14" Barry