Clean_position: Clean_position

Description Usage Arguments Value Examples

View source: R/Clean_position.R

Description

Change points are excluded if they are in the wrong position. For example, both point 3 and the peak pair represent the peaking discharge whose value (position) should be close to the daily maximum discharge. If the peaking discharge is close to the daily minimum discharge, change points will be removed since they are in the wrong positions

Usage

1
Clean_position(df, alpha2 = 0.3)

Arguments

df

dataframe to be processed

alpha2

Default value : 0.3

Value

output will be a dataframe in the same form as the input

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# before running the function
HPK_SampleData$dateTime <- parse_date_time(HPK_SampleData$dateTime,"mdy HM")

hpk_flow_cln <- HEDA_Tidy(HPK_SampleData, season = c(6,7,8,9))

hpk_flow_cg <- ReversalCount(hpk_flow_cln)

# running the function to clean unqualified change points
hpk_flow_cg <- Clean_position(hpk_flow_cg)

# default value is open to change
hpk_flow_cg <- Clean_position(hpk_flow_cg, alpha2 = 0.3)

HEDA documentation built on July 21, 2021, 1:06 a.m.

Related to Clean_position in HEDA...