Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
docs
.Rproj.user
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export(QAPPapproved)
export(RemoveEmptyColumns)
export(TADABigdataRetrieval)
export(TADAdataRetrieval)
export(TransformCensoredData)
export(WQXTargetUnits)
export(readWQPwebservice)
importFrom(magrittr,"%>%")
33 changes: 33 additions & 0 deletions R/CensoredData.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,36 @@
## Two objectives:
# TransformCensoredData
# GenerateCensoredDataStats

#' Generate list of unique values in a given field
#'
#' Function substitutes monitoring device/method detection limits (if available) as result values when applicable.
#'
#' @param transform Boolean argument with two possible values, “TRUE” and “FALSE”.
#' Default is transform = TRUE.
#'
#' @param .data Optional argument; TADA dataframe
#'
#' @return When transform=TRUE, monitoring device/method detection limits (if available) are substituted as result values and units.
#' When transform = FALSE, monitoring device/method detection limits (if available) are NOT substituted as result values and units -
#' Instead, columns are appended to rows that may include censored data. The flag indicates 1) if the row contains censored data, and 2)
#' if monitoring device/method detection limits are available.
#'
#' @export
#'

TransformCensoredData <- function(transform, .data) {

# check .data is of class data.frame
if (!missing(.data)) {
if (("data.frame" %in% class(.data)) == FALSE) {
stop(".data must be of class 'data.frame'")
}
}
# execute function after checks are passed
{

}
}


93 changes: 93 additions & 0 deletions docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

113 changes: 113 additions & 0 deletions docs/CONTRIBUTING.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading