T_frequency: A function characterizes frequency of stream thermal regime

Description Usage Arguments Examples

View source: R/T_frequency.r

Description

This function summarize metrics of stream thermal frequency.

Usage

1
2
3
T_frequency(sitedata, cT = 16, TlengthPortion = 2/3, SeasonSp = c(3, 4,
  5), SeasonSu = c(6, 7, 8), SeasonFa = c(9, 10, 11), SeasonWi = c(12, 1,
  2))

Arguments

sitedata

stream monitoring site data in SiteID, Date(in as.Date format), MaxT, MinT, MeanT.

cT

critical temperature of interest, default = 16 (Celsius)

TlengthPortion

portion of length that required for calculating metric summaries, defaulty=2/3

SeasonSp

define spring season, default as March, April, and May, c(3,4,5)

SeasonSu

define summer season, default as June, July, August, c(6,7,8)

SeasonFa

define fall season, default as September, October, November, c(9,10,11)

SeasonWi

define winter season, default as December, Januray, February, c(12,1,2)

Examples

1
2
3
4
5
6
install.packages("dataRetrieval")
library(dataRetrieval)
ExUSGSStreamTemp<-readNWISdv("01382310","00010","2011-01-01","2011-12-31",c("00001","00002","00003"))
sitedata<-subset(ExUSGSStreamTemp, select=c("site_no","Date","X_00010_00001","X_00010_00002","X_00010_00003"))
names(sitedata)<-c("siteID","Date","MaxT","MinT","MeanT")
T_frequency(sitedata)

tsangyp/StreamThermal documentation built on Nov. 15, 2018, 10:50 p.m.