Skip to content

Commit

Permalink
Remove rec_vars()
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiromagno committed May 23, 2024
1 parent 297b4cb commit e79b87b
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 89 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export(problems)
export(read_ct_spec)
export(read_ct_spec_example)
export(read_domain_example)
export(rec_vars)
export(sbj_vars)
importFrom(rlang,"%||%")
importFrom(rlang,":=")
Expand Down
6 changes: 3 additions & 3 deletions R/derive_seq.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
#' @param tgt_var The target SDTM variable: a single string indicating the name
#' of the sequence number (`--SEQ`) variable, e.g. `"DSSEQ"`. Note that
#' supplying a name not ending in `"SEQ"` will raise a warning.
#' @param rec_vars A character vector of record-level identifier variables. Use
#' [rec_vars()] to quickly get the identifier variables for a given domain.
#' @param rec_vars A character vector of record-level identifier variables.
#' @param sbj_vars A character vector of subject-level identifier variables.
#' @param start_at The sequence numbering starts at this value (default is `1`).
#'
Expand All @@ -29,7 +28,8 @@
#' (vs <- read_domain_example("vs"))
#'
#' # Derivation of VSSEQ
#' derive_seq(tgt_dat = vs, tgt_var = "VSSEQ", rec_vars = rec_vars("VS"))
#' rec_vars <- c("STUDYID", "USUBJID", "VSTESTCD", "VSDTC", "VSTPTNUM")
#' derive_seq(tgt_dat = vs, tgt_var = "VSSEQ", rec_vars = rec_vars)
#'
#' # An APSC raw data set example
#' (apsc <- read_domain_example("apsc"))
Expand Down
37 changes: 0 additions & 37 deletions R/rec_vars.R

This file was deleted.

14 changes: 14 additions & 0 deletions R/sbj_vars.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#' Subject-level key variables
#'
#' [sbj_vars()] returns the set of variable names that uniquely define
#' a subject.
#'
#' @returns A character vector of variable names.
#'
#' @examples
#' sbj_vars()
#'
#' @export
sbj_vars <- function() {
c("STUDYID", "USUBJID")
}
Binary file removed R/sysdata.rda
Binary file not shown.
19 changes: 0 additions & 19 deletions data-raw/domain_record_vars.R

This file was deleted.

Binary file removed data-raw/domain_record_vars.csv.xz
Binary file not shown.
6 changes: 3 additions & 3 deletions man/derive_seq.Rd

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

25 changes: 0 additions & 25 deletions man/rec_vars.Rd

This file was deleted.

2 changes: 1 addition & 1 deletion man/sbj_vars.Rd

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

0 comments on commit e79b87b

Please sign in to comment.