hydrocluster: hydrocluster: K-means clustering of stations hydroclimatic...

View source: R/hydRopclim.R

hydroclusterR Documentation

hydrocluster: K-means clustering of stations hydroclimatic time series

Description

K-means clustering of a hydroclimatic time series, e.g., precipitation, streamflow, and evaluation by silhouette (Rau et al, 2017). Spatial visualization and control quality by silhouettes.

Usage

hydrocluster(file,shp,clusters)

Arguments

file: A dataframe object including head station names, latitude, longitude and monthly or annual data

shp: A spatial object, a polygon shapefile of study region

clusters: A numeric value, number of clusters

Examples

hydrocluster(file=database4,shp=region,clusters=4)

hydrocodes/hydRopclim documentation built on Nov. 22, 2023, 9:27 p.m.