-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#43 - Start writing the documentation for
xportr_select()
[minus ex…
…amples].
- Loading branch information
1 parent
38a0ac9
commit 3948547
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#' Select Required Variables | ||
#' | ||
#' Subsets a given data frame so it contains only those variables stated in a | ||
#' given variable level metadata. | ||
#' | ||
#' @param .df A data frame of CDISC standard. | ||
#' @param metacore A data frame containing variable level metadata. | ||
#' @param domain A character value to subset the `metacore`. If `NULL` (default), | ||
#' uses `.df` value as a subset condition. | ||
#' @param verbose The action the function takes when a variable in the `metacore` | ||
#' is not found in the `.df`. Options are 'stop', 'warn', 'message', and 'none'. | ||
#' | ||
#' @return Data frame containing only those variables given in the metadata. | ||
#' @family metadata functions | ||
#' @seealso [xportr_df_label()], [xportr_format()], [xportr_label()], and | ||
#' [xportr_length()] | ||
#' @export |