Skip to content

Commit

Permalink
#43 - Start writing the documentation for xportr_select() [minus ex…
Browse files Browse the repository at this point in the history
…amples].
  • Loading branch information
sophie-gem committed May 17, 2023
1 parent 38a0ac9 commit 3948547
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions R/select.R
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

0 comments on commit 3948547

Please sign in to comment.