data(georgia)
## binary adjacency matrix
C <- shape2mat(georgia, "B", method = 'rook')
## number of neighbors per observation
summary( n_nbs(C) )
head(Matrix::summary(C))
## row-standardized matrix
W <- shape2mat(georgia, "W", method = 'rook')
## summary of weights
E <- edges(W, unique_pairs_only = FALSE)
summary(E$weight)
## space-time matricies
## for eigenvector space-time filtering
## if you have multiple years with same geometry/geography,
## provide the geometry (for a single year!) and number of years \code{t}
Cst <- shape2mat(georgia, t = 5)
dim(Cst)
EVst <- make_EV(Cst)
dim(EVst)
Run the code above in your browser using DataLab