Learn R Programming

sdsfun

Spatial Data Science Complementary Features

Installation

  • Install from CRAN with:
install.packages("sdsfun")
  • Install development binary version from R-universe with:
install.packages('sdsfun',
                 repos = c("https://stscl.r-universe.dev",
                           "https://cloud.r-project.org"),
                 dep = TRUE)
  • Install development source version from GitHub with:
# install.packages("devtools")
devtools::install_github("stscl/sdsfun", dep = TRUE)

Copy Link

Version

Install

install.packages('sdsfun')

Monthly Downloads

406

Version

0.7.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Wenbo Lv

Last Published

January 13th, 2025

Functions in sdsfun (0.7.0)

formula_varname

get variable names in a formula and data
sf_distance_matrix

generates distance matrix
spvar

spatial variance
ssh_test

test explanatory power of spatial stratified heterogeneity
moran_test

test global spatial autocorrelation
spdep_distance_swm

constructs spatial weight matrices based on distance
loess_optnum

determine optimal spatial data discretization for individual variables
spdep_lmtest

spatial linear models selection
spade_psd

only spade power of spatial determinant
rm_lineartrend

remove variable linear trend based on covariate
sf_geometry_name

sf object geometry column name
spdep_skater

spatial c(k)luster analysis by tree edge removal
spdep_nb

construct neighbours list
sf_coordinates

extract locations
spdep_contiguity_swm

constructs spatial weight matrices based on contiguity
tbl_xyz2mat

convert xyz tbl to matrix
standardize_vector

standardization
tbl_all2int

convert discrete variables in a tibble to integers
geodetector_q

only geodetector q-value
sf_geometry_type

sf object geometry type
sf_gk_proj_cgcs2000

generates cgcs2000 Gauss-Kruger projection epsg coding character
sf_voronoi_diagram

generates voronoi diagram
sf_utm_proj_wgs84

generates wgs84 utm projection epsg coding character
check_tbl_na

check for NA values in a tibble
hclustgeo_disc

hierarchical clustering with spatial soft constraints
dummy_vec

transforming a categorical variable into dummy variables
dummy_tbl

transforming a category tibble into the corresponding dummy variable tibble
inverse_distance_swm

construct inverse distance weight
generate_subsets

generate subsets of a set
fuzzyoverlay

spatial fuzzy overlay
normalize_vector

normalization
%>%

Pipe operator
discretize_vector

discretization