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
Copy file name to clipboardexpand all lines: R/fn_get.R
+11-10
Original file line number
Diff line number
Diff line change
@@ -153,27 +153,28 @@ get_mdl_ds_url <- function (mdls_lup, mdl_nm_1L_chr)
153
153
#' @description get_mdl_from_dv() is a Get function that extracts data from an object. Specifically, this function implements an algorithm to get model from dataverse. The function returns Model (a model).
154
154
#' @param mdl_nm_1L_chr Model name (a character vector of length one)
155
155
#' @param dv_ds_nm_1L_chr Dataverse dataset name (a character vector of length one), Default: 'https://doi.org/10.7910/DVN/JC6PTV'
156
+
#' @param dv_nm_1L_chr Dataverse name (a character vector of length one), Default: 'TTU'
156
157
#' @param server_1L_chr Server (a character vector of length one), Default: 'dataverse.harvard.edu'
157
158
#' @param key_1L_chr Key (a character vector of length one), Default: NULL
Copy file name to clipboardexpand all lines: R/fn_transform.R
+93
Original file line number
Diff line number
Diff line change
@@ -30,3 +30,96 @@ transform_ds_for_cmprsn <- function (ds_tb, cmprsn_var_nm_1L_chr, id_var_nm_1L_c
30
30
cmprsn_groups_chr)
31
31
return(ds_tb)
32
32
}
33
+
#' Transform dataset to drop missing
34
+
#' @description transform_ds_to_drop_msng() is a Transform function that edits an object in such a way that core object attributes - e.g. shape, dimensions, elements, type - are altered. Specifically, this function implements an algorithm to transform dataset to drop missing. The function returns Dataset (a tibble).
35
+
#' @param ds_tb Dataset (a tibble)
36
+
#' @param predictors_chr Predictors (a character vector)
37
+
#' @param uid_var_nm_1L_chr Unique identifier variable name (a character vector of length one), Default: 'UID_chr'
#' @description transform_ds_to_long() is a Transform function that edits an object in such a way that core object attributes - e.g. shape, dimensions, elements, type - are altered. Specifically, this function implements an algorithm to transform dataset to long. The function returns Dataset (a tibble).
54
+
#' @param ds_tb Dataset (a tibble)
55
+
#' @param predictors_chr Predictors (a character vector)
56
+
#' @param drop_underscore_1L_lgl Drop underscore (a logical vector of length one), Default: T
57
+
#' @param msrmnt_date_var_nm_1L_chr Measurement date variable name (a character vector of length one), Default: 'date_dtm'
58
+
#' @param round_var_nm_1L_chr Round variable name (a character vector of length one), Default: 'Timepoint_chr'
59
+
#' @param row_id_nm_1L_chr Row identity name (a character vector of length one), Default: 'case_id'
60
+
#' @param time_is_sfx_1L_lgl Time is suffix (a logical vector of length one), Default: T
0 commit comments