Description Usage Arguments Value Examples
View source: R/Clean_position.R
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
1 | Clean_position(df, alpha2 = 0.3)
|
df |
dataframe to be processed |
alpha2 |
Default value : 0.3 |
output will be a dataframe in the same form as the input
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.