Skip to content

Commit

Permalink
v2.0.5.9089
Browse files Browse the repository at this point in the history
* refactor: Remove extra columns from QC routine, Issue #123
    + fun.QC.R
    + fun.QC.File.R
  • Loading branch information
leppott committed Apr 19, 2021
1 parent 7d2f2f6 commit 057c1d0
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ContDataQC
Title: Quality Control (QC) of Continous Monitoring Data
Version: 2.0.5.9088
Version: 2.0.5.9089
Authors@R: c(
person("Erik W", "Leppo", email="Erik.Leppo@tetratech.com",role=c("aut","cre")),
person("Ann","Roseberry Lincoln", role="ctb"),
Expand Down
10 changes: 9 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@ NEWS-ContDataQC

<!-- NEWS.md is generated from NEWS.Rmd. Please edit that file -->

#> Last Update: 2021-04-19 13:40:53
#> Last Update: 2021-04-19 16:11:06

# Version History

## v2.0.5.9089

2021-04-19

- refactor: Remove extra columns from QC routine, Issue \#123
- fun.QC.R
- fun.QC.File.R

## v2.0.5.9088

2021-04-19
Expand Down
10 changes: 9 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@ NEWS-ContDataQC

<!-- NEWS.md is generated from NEWS.Rmd. Please edit that file -->

#> Last Update: 2021-04-19 13:40:53
#> Last Update: 2021-04-19 16:11:06

# Version History

## v2.0.5.9089

2021-04-19

- refactor: Remove extra columns from QC routine, Issue \#123
- fun.QC.R
- fun.QC.File.R

## v2.0.5.9088

2021-04-19
Expand Down
7 changes: 7 additions & 0 deletions NEWS.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ cat(paste0("Last Update: ",Sys.time()))

# Version History

## v2.0.5.9089
2021-04-19

* refactor: Remove extra columns from QC routine, Issue #123
+ fun.QC.R
+ fun.QC.File.R

## v2.0.5.9088
2021-04-19

Expand Down
6 changes: 6 additions & 0 deletions R/fun.QC.File.R
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,12 @@ fun.QC.File <- function(fun.myFile
#
}##FOR.j.END
#

# Remove "Comment.MOD.Flag.*" columns (2021-04-19), Issue #123
## easier to remove than to mod code to not add
data.import <- data.import[, !grepl("^Comment\\.MOD\\.Flag\\."
, names(data.import))]

# # leave as a loop so get RAW and Comment together
# j <- myNames.DataFields2Mod
# # A. Add comment field and leave blank
Expand Down
9 changes: 7 additions & 2 deletions R/fun.QC.R
Original file line number Diff line number Diff line change
Expand Up @@ -917,12 +917,17 @@ fun.QC <- function(fun.myData.SiteID
for (j in myNames.DataFields2Mod) {##FOR.j.START
#
# A. Add comment field and leave blank
data.import[,paste(myName.Comment.Mod,j,sep=".")] <- ""
data.import[, paste(myName.Comment.Mod, j, sep=".")] <- ""
# B. Add data.RAW and populate with original data
data.import[,paste(myName.Raw,j,sep=".")] <- data.import[,j]
data.import[, paste(myName.Raw, j, sep=".")] <- data.import[, j]
#
}##FOR.j.END
#
# Remove "Comment.MOD.Flag.*" columns (2021-04-19), Issue #123
## easier to remove than to mod code to not add
data.import <- data.import[, !grepl("^Comment\\.MOD\\.Flag\\."
, names(data.import))]

# # leave as a loop so get RAW and Comment together
# j <- myNames.DataFields2Mod
# # A. Add comment field and leave blank
Expand Down
2 changes: 1 addition & 1 deletion inst/shiny-examples/ContDataQC/ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ tab_Console <- source("external/tab_Console.R", local = TRUE)$value

shinyUI(
# VERSION ----
navbarPage("Continuous data QC, summary, and statistics - v2.0.5.9087",
navbarPage("Continuous data QC, summary, and statistics - v2.0.5.9088",
theme= shinytheme("spacelab"),
#also liked "cerulean" at https://rstudio.github.io/shinythemes/
# tabPan, Site Intro ----
Expand Down

0 comments on commit 057c1d0

Please sign in to comment.