diff --git a/NAMESPACE b/NAMESPACE index bd5954d..cb41b25 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -62,6 +62,8 @@ importFrom(sf,st_crs) importFrom(shadowtext,geom_shadowtext) importFrom(sp,plot) importFrom(sp,proj4string) +importFrom(spdep,nb2mat) +importFrom(spdep,poly2nb) importFrom(stats,aggregate) importFrom(stats,as.formula) importFrom(stats,dgamma) diff --git a/R/getAmat.R b/R/getAmat.R index 993fe8c..279cdf5 100644 --- a/R/getAmat.R +++ b/R/getAmat.R @@ -4,6 +4,7 @@ #' @param names character vector of region ids to be added to the neighbours list #' #' @return Spatial djacency matrix. +#' @importFrom spdep poly2nb nb2mat #' @author Zehang Richard Li #' @examples #' \dontrun{