[R-sig-Geo] A potential problem when using SparseM packageandspgwr package together
Roger.Bivand at nhh.no
Tue Feb 1 19:14:13 CET 2005
On Tue, 1 Feb 2005, Danlin Yu wrote:
> I just found out that if you loaded the SparseM and spgwr packages at the
> same time in R (2.0.1), spgwr won't work. The reason is that since the
> function model.response() (which is intensively used in spgwr package) in
> SparseM package requires different object class (an object of either
> 'matrix.csc.hb' or 'matrix.ssc.hb' class) than just a "data.frame".
> Currently, the solution is to avoid loading the two packages together.
> Hope this helps.
Yes, this is correct. A longer-term fix will be to give spgwr a NAMESPACE,
a medium-term to edit the source package to replace model.response() with
model.extract(, "response") - with the appropriate model frame arguments
in place, and the short-term as you suggest.
> Danlin Yu
> Lecturer, Ph.D. Candidate
> Department of Geography
> University of Wisconsin, Milwaukee
> Tel: (414)229-3943
> Fax: (414)229-3981
> Email: danlinyu at uwm.edu
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Breiviksveien 40, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93
e-mail: Roger.Bivand at nhh.no
More information about the R-sig-Geo