uci | R Documentation |
Calculates the Urban Centrality Index (UCI) as in Pereira et al., (2013) \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1111/gean.12002")}. The UCI measures the extent to which the spatial organization of a city or region varies from extreme monocentric to extreme polycentric in a continuous scale from 0 to 1. Values close to 0 indicate more polycentric patterns and values close to 1 indicate a more monocentric urban form.
Calculate Urban Centrality Index
uci(
sf_object,
var_name,
dist_type = "euclidean",
bootstrap_border = FALSE,
showProgress = TRUE,
parallel = FALSE
)
sf_object |
A |
var_name |
A |
dist_type |
A |
bootstrap_border |
A |
showProgress |
A |
parallel |
Decides whether the function should run in parallel. Defaults
is |
Please check the vignettes and data documentation on the website.
Maintainer: Rafael H. M. Pereira rafa.pereira.br@gmail.com (ORCID)
Useful links:
Report bugs at https://github.com/ipeaGIT/uci/issues
# load data
data_dir <- system.file("extdata", package = "uci")
grid <- readRDS(file.path(data_dir, "grid_bho.rds"))
# calculate UCI
df <- uci(
sf_object = grid,
var_name = 'jobs',
dist_type = "euclidean",
bootstrap_border = FALSE
)
head(df)
# calculate UCI with bootstrap
df2 <- uci(
sf_object = grid,
var_name = 'jobs',
dist_type = "euclidean",
bootstrap_border = TRUE,
showProgress = TRUE
)
head(df2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.