Learn R Programming

phenmod (version 1.2-7)

data.combine.clusters.search: 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).

Value

Returns a list containing related stations.

Details

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

Examples

Run this code
# NOT RUN {
  ## 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)

  
# }

Run the code above in your browser using DataLab