data.extract: Essential data extraction.

View source: R/data.extract.R

data.extractR Documentation

Essential data extraction.

Description

Extracts the essential data out of budburst and leafcolouring data and combines them.

Usage

data.extract(data.budburst, data.leafcolouring, 
			valid.years=1952:2009, out2File=FALSE, 
			silent=FALSE)

Arguments

data.budburst

A dataset extracted by function data.read.phase containing budburst information of currently processed plant.

data.leafcolouring

A dataset extracted by function data.read.phase containing leafcolouring information of currently processed plant.

valid.years

The years that should be included in extraction process (may be needed if some data in datasets are insufficient).

out2File

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

silent

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

Details

This function extracts the essential data out of budburst and leafcolouring data and combines them. Therefor it extracts the stations contained in both datasets and searches the leafcolouring dates and the related budburst date (at the following year).

Value

A dataset containing the station ID, the station geographic and the Gauss-Krueger-coordinates of the station, the altitude of the station, the year and the julian day of the budburst and the leafcolouring and outlier information for budburst and leafcolouring.

Author(s)

Daniel Doktor, Maximilian Lange

See Also

data.read.phase,lcObs,bbObs,extractedObs

Examples

  ## load budburst observations (extracted via 'data.read.phase')
  data(bbObs)
  ## load leafcolouring observations (extracted via 'data.read.phase')
  data(lcObs)

  ## extract essential data
  data.extracted <- data.extract(data.budburst=bbObs, 
				data.leafcolouring=lcObs, 
				out2File=FALSE)

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