Learn R Programming

fsr: Handling Fuzzy Spatial Data in R

Overview

Many spatial objects (i.e., geographical objects) in reality may have inexact locations, vague boundaries, and/or blurred interiors, and hence cannot be adequately represented by well-known (crisp) spatial objects (e.g., those objects available in spatial libraries like GEOS and GDAL). Fuzzy set theory and fuzzy logic are powerful approaches to deal with spatial fuzziness.

Unfortunately, spatial fuzziness has so far not found its way into spatial data science projects due to a lack of complete implementations of software packages that can handle fuzzy spatial objects. Motivated by this lack of support, the fsr package has the following advantages:

Citation

To cite fsr in publications use:

Installing

Install the released version of fsr from CRAN with:

install.packages("fsr")

Install the development version from GitHub with:

# install.packages("devtools")
library(devtools)
install_github("accarniel/fsr")

Contributing and Contact

The project welcomes contributions. You can contribute to fsr by making Issues or Pull Requests on this GitHub Repository. Alternatively, you can contact Anderson Carniel. When a Pull Request or email is sent, Anderson Carniel will check it as soon as possible.

Copy Link

Version

Install

install.packages('fsr')

Monthly Downloads

207

Version

2.0.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Anderson Carniel

Last Published

January 10th, 2024

Functions in fsr (2.0.1)

fsr_diff_operators

Compute fuzzy difference operators
fsr_filter_operations

Return a crisp spatial object formed by geometric parts of a pgeometry object
fsi_qw_eval

Evaluate region inference methods
pcollection-class

An S4 Class for representing plateau collections (subclass of pgeometry)
fsr_numerical_operations

Compute fuzzy numerical operations
fsr_eval_modes

Evaluate a membership degree
fsr_components

Create a component
fsr_geometric_operations

Compute fuzzy geometric set operations
fsr_topological_relationships

Compute fuzzy topological relationships
pcollection_to_pcomposition

Convert a plateau collection object into a plateau composition object
spa_boundary

Capture the fuzzy boundary of a spatial plateau object
spa_add_component

Add components to a pgeometry object
reexports

Objects exported from other packages
pregion-class

An S4 Class for representing plateau regions (subclass of pgeometry)
ppoint-class

An S4 Class for representing plateau points (subclass of pgeometry)
pline-class

An S4 Class for representing plateau lines (subclass of pgeometry)
plot

Graphically visualize pgeometry objects
spa_is_empty

Check if a pgeometry object is empty
pgeometry-class

An S4 Class for representing spatial plateau data types
pcomposition-class

An S4 Class for representing plateau compositions (subclass of pgeometry)
spa_flatten

Flatten a plateau collection object
spa_set_classification

Set a new classification for fuzzy topological relationships
spa_boundary_pregion

Capture the fuzzy boundary of a plateau region object
spa_core

Get the core of a pgeometry object
spa_contour

Capture the frontier of a plateau region object
spa_get_type

Get the type of a spatial plateau object
spa_exact_equal

Check two spatial plateau objects for exact equality
spa_exact_inside

Check two spatial plateau objects for exact containment
spa_support

Get the support of a pgeometry object
spa_eval

Evaluate the membership degree of a point in a pgeometry object
spa_creator

Build pgeometry objects from a point dataset
visitation

Visitation: An example of FSI model
fsi_add_fsa

Add an antecedent to an FSI model
as_tibble.pgeometry

Convert a pgeometry object into tabular data (data.frame or tibble)
create_empty_pgeometry

Create an empty pgeometry object
fsi_eval

Evaluate a point inference query
fsi_add_cs

Add the consequent to an FSI model
fsi_create

Create an empty fuzzy spatial inference model
PWKT

Return PWKT representation of a spatial plateau object
create_pgeometry

Create a pgeometry object with components
fsi_add_rules

Add fuzzy rules to an FSI model
component-class

An S4 Class for representing a component of a spatial plateau object