data.combine.clusters: Station cluster creation.

View source: R/data.combine.clusters.R

data.combine.clustersR Documentation

Station cluster creation.

Description

Creates a list of station clusters.

Usage

data.combine.clusters(dataset, stations.net, 
			shuffle=TRUE, tries=100, 
			silent=FALSE, out2File=FALSE)

Arguments

dataset

The dataset with the stations to cluster and their coordinates.

stations.net

A list containing the information which stations are neighbours. Created by function data.combine.stationNet.

shuffle

A boolean value determining wether the stations should be processed in their order (value: FALSE) or if they should be shuffled befor processing (value: TRUE). Shuffled stations produce different results each run.

tries

If value of ‘shuffle’ is true, the integer value ‘tries’ determines how much cluster-lists should be created. The cluster-list with the lowest number of entries will be returned (this will increase the size of the clusters).

silent

A boolean value determining wether the function should generate output messages or not.

out2File

A boolean value determining wether the output will be stored in log-files.

Details

Creates a list of station clusters by randomly creating clusters (if value of ‘shuffle’ is TRUE) and chosing the list with the lowest number of clusters.

Value

Returns a list of station clusters (a station cluster is a vector containing related stations).

Author(s)

Daniel Doktor, Maximilian Lange

See Also

data.combine.clusters.search,data.combine.stationNet

Examples

  ## load extracted observations as created by 'data.extract'
  data(extractedObs)

  ## create station net
  stations.net <- data.combine.stationNet(extractedObs, 
				range=5000, alt.range=50, silent=FALSE, 
				out2File=FALSE)

  ## search clusters in station net
  clusters <- data.combine.clusters(extractedObs, stations.net, 
				shuffle=TRUE, tries=3, silent=FALSE, 
				out2File=FALSE)

phenmod documentation built on April 14, 2022, 5:08 p.m.