data.combine.clusters.search: Cluster search

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

data.combine.clusters.searchR Documentation

Cluster search

Description

Searches clusters in a station net.

Usage

data.combine.clusters.search(stations, stations.net, 
			shuffle=TRUE)

Arguments

stations

A list of all stations.

stations.net

A list of neighbourstations (neighbours of the station at same list position in list ‘stations’).

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).

Details

Searches related stations in a station net. If value of ‘shuffle’ is TRUE, each run of this method produces different results.

Value

Returns a list containing related stations.

Author(s)

Daniel Doktor, Maximilian Lange

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
  stations <- as.list(unique(extractedObs$STAT_ID))
  clusters <- data.combine.clusters.search(stations, 
			stations.net, shuffle=TRUE)

  

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