Skip to contents

Main SQI Computation

Core functions for computing Soil Quality Index with different workflows

compute_sqi()
Compute Soil Quality Index from CSV file
compute_sqi_df()
Compute Soil Quality Index from data frame
compute_sqi_properties()
Compute Soil Quality Index with property selection

Data Handling

Functions for importing and preprocessing soil data

read_soil_csv()
Read Soil Data from CSV File
standardize_numeric()
Standardize Numeric Columns
to_numeric()
Convert Values to Numeric

PCA and MDS Selection

Principal Component Analysis for Minimum Data Set selection

pca_select_mds()
Select Minimum Data Set (MDS) Using PCA

AHP Weighting

Analytic Hierarchy Process for expert-based indicator weighting

ahp_weights()
Calculate AHP weights from pairwise comparison matrix
create_ahp_matrix()
Create AHP pairwise comparison matrix interactively
ratio_to_saaty()
Convert importance ratios to Saaty pairwise comparison matrix

Scoring Functions

Functions for transforming soil properties into quality scores

score_indicators()
Score multiple indicators using specified scoring functions
score_higher_better()
Score indicator with higher-is-better normalization
score_lower_better()
Score indicator with lower-is-better normalization
score_optimum()
Score indicator with optimum range
score_threshold()
Score indicator with threshold-based piecewise interpolation

Scoring Constructors

Object-oriented constructors for scoring rules

higher_better()
Create a higher-is-better scoring rule
lower_better()
Create a lower-is-better scoring rule
optimum_range()
Create an optimum range scoring rule
threshold_scoring()
Create a threshold-based scoring rule

Property Sets and Standard Rules

Pre-defined property collections and automatic scoring rules

soil_property_sets
Pre-defined soil property sets
standard_scoring_rules()
Generate standard scoring rules for soil properties

Visualization

Functions for plotting and visualizing SQI results

plot(<sqi_result>)
Plot SQI Results
plot_sqi_report()
Create Multi-Panel SQI Report

Interactive Tools

Shiny-based interactive applications

run_sqi_app()
Launch Interactive Soil Quality Index Calculator

Example Data

Built-in datasets for examples and testing

soil_ucayali
Example Soil Data from Ucayali, Peru
soil_data
Extended Soil Data from Ucayali, Peru

S3 print methods for custom objects

print(<ahp_matrix>)
Print method for ahp_matrix objects
print(<scoring_rule>)
Print method for scoring_rule objects