You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#' This function attempts to detect the data CDISC clinical standard used in a given R data frame.
3
+
#' This function attempts to detect the clinical data standard used in a given R data frame.
4
4
#'
5
-
#' This function compares the columns in the provided \code{"data"} with the required columns for a given data standard/domain combination. The function is designed to work with the SDTM and AdAM CDISC(<https://www.cdisc.org/>) standards for clinical trial data. Currently, "labs" is the only domain supported.
5
+
#' This function compares the columns in the provided \code{"data"} with the required columns for a given data standard/domain combination. The function is designed to work with the SDTM and AdAM CDISC(<https://www.cdisc.org/>) standards for clinical trial data by default. Additional standards can be added by modifying the \code{"standardMetadata"} data set included as part of this package. Currently, "labs" is the only domain supported.
6
6
#'
7
7
#' @param data A data frame in which to detect the data standard
8
8
#' @param includeFields specifies whether to check the data set for field level data in addition to columns. Default: \code{TRUE}.
9
9
#' @param domain The data domain for the data set provided. Default: \code{"labs"}.
10
-
#' @return A list containing the matching \code{"standard"} ("ADaM", "SDTM" or "None") and a list of \code{"details"} describing each standard considered.
10
+
#' @return A list containing the matching \code{"standard"} from \code{"standardMetadata"} and a list of \code{"details"} describing each standard considered.
Copy file name to clipboardExpand all lines: R/evaluateStandard.R
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
#' @param includeFields should field level data be evaluated?
8
8
#' @param domain data domain. "labs" only for now.
9
9
#'
10
-
#' @return a list describing to what degree the data set matches the data standard. The "match" property describes compliance with the standard as "Full", "Partial" or "None". The "checks" property is a list of the data elements expected for the standard and whether they are "valid" in the given data set. "valid_checks" and "invalid_checks" provide counts of the specified checks.
10
+
#' @return a list describing to what degree the data set matches the data standard. The "match" property describes compliance with the standard as "full", "partial" or "none". The "checks" property is a list of the data elements expected for the standard and whether they are "valid" in the given data set. "total_checks", "valid_checks" and "invalid_checks" provide counts of the specified checks. "match_percent" is calculated as valid_checks/total_checks.
11
11
#'
12
12
#' @examples
13
13
#' safetyGraphics:::evaluateStandard(data=adlbc, standard="adam") # Match is TRUE
Copy file name to clipboardExpand all lines: R/getSettingsMetadata.R
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
#' @param charts optional vector of chart names used to filter the metadata. Exact matches only (case-insensitive). All rows returned by default.
6
6
#' @param text_keys optional vector of keys used to filter the metadata. Partial matches for any of the strings are returned (case-insensitive). All rows returned by default.
7
7
#' @param filter_expr optional filter expression used to subset the data.
8
+
#' @param add_standards should data standard info stored in standardsMetadata be included
8
9
#' @param cols optional vector of columns to return from the metadata. All columns returned by default.
9
10
#' @param metadata metadata data frame to be queried
#' Metadata about the data standards used to configure safetyGraphics charts. One record per unique setting. Columns contain default setting values for clinical data standards, like the CDISC "adam" and "sdtm" standards.
4
+
#'
5
+
#' @format A data frame with 25 rows and 3 columns
6
+
#' \describe{
7
+
#' \item{text_key}{Text key indicating the setting name. \code{'--'} delimiter indicates a nested setting}
8
+
#' \item{adam}{Settings values for the ADaM standard}
9
+
#' \item{sdtm}{Settings values for the SDTM standard}
0 commit comments