mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2024-11-24 14:01:55 +01:00
updated documentation
This commit is contained in:
parent
9d95b438d8
commit
4c5d58bf82
10
DESCRIPTION
10
DESCRIPTION
@ -27,12 +27,13 @@ Suggests:
|
|||||||
jsonlite,
|
jsonlite,
|
||||||
testthat,
|
testthat,
|
||||||
Hmisc,
|
Hmisc,
|
||||||
readr,
|
|
||||||
knitr,
|
knitr,
|
||||||
rmarkdown,
|
rmarkdown,
|
||||||
gt,
|
gt,
|
||||||
usethis,
|
usethis,
|
||||||
ggplot2
|
ggplot2,
|
||||||
|
haven,
|
||||||
|
here
|
||||||
License: GPL (>= 3)
|
License: GPL (>= 3)
|
||||||
Encoding: UTF-8
|
Encoding: UTF-8
|
||||||
LazyData: true
|
LazyData: true
|
||||||
@ -45,12 +46,15 @@ Imports:
|
|||||||
tidyr,
|
tidyr,
|
||||||
tidyselect,
|
tidyselect,
|
||||||
keyring,
|
keyring,
|
||||||
purrr
|
purrr,
|
||||||
|
readr,
|
||||||
|
stats
|
||||||
Collate:
|
Collate:
|
||||||
'utils.r'
|
'utils.r'
|
||||||
'process_user_input.r'
|
'process_user_input.r'
|
||||||
'REDCap_split.r'
|
'REDCap_split.r'
|
||||||
'ds2dd.R'
|
'ds2dd.R'
|
||||||
|
'ds2dd_detailed.R'
|
||||||
'easy_redcap.R'
|
'easy_redcap.R'
|
||||||
'read_redcap_tables.R'
|
'read_redcap_tables.R'
|
||||||
'redcap_wider.R'
|
'redcap_wider.R'
|
||||||
|
@ -4,9 +4,11 @@ export(REDCap_split)
|
|||||||
export(clean_redcap_name)
|
export(clean_redcap_name)
|
||||||
export(d2w)
|
export(d2w)
|
||||||
export(ds2dd)
|
export(ds2dd)
|
||||||
|
export(ds2dd_detailed)
|
||||||
export(easy_redcap)
|
export(easy_redcap)
|
||||||
export(focused_metadata)
|
export(focused_metadata)
|
||||||
export(get_api_key)
|
export(get_api_key)
|
||||||
|
export(guess_time_only_filter)
|
||||||
export(match_fields_to_form)
|
export(match_fields_to_form)
|
||||||
export(read_redcap_tables)
|
export(read_redcap_tables)
|
||||||
export(redcap_wider)
|
export(redcap_wider)
|
||||||
@ -21,5 +23,6 @@ importFrom(keyring,key_get)
|
|||||||
importFrom(keyring,key_list)
|
importFrom(keyring,key_list)
|
||||||
importFrom(keyring,key_set)
|
importFrom(keyring,key_set)
|
||||||
importFrom(purrr,reduce)
|
importFrom(purrr,reduce)
|
||||||
|
importFrom(readr,parse_time)
|
||||||
importFrom(tidyr,pivot_wider)
|
importFrom(tidyr,pivot_wider)
|
||||||
importFrom(tidyselect,all_of)
|
importFrom(tidyselect,all_of)
|
||||||
|
4
NEWS.md
4
NEWS.md
@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
### Functions
|
### Functions
|
||||||
|
|
||||||
* Fix: `ds2dd()`: uses correct default dd column names
|
* Fix: `ds2dd()`: uses correct default dd column names. Will be deprecated.
|
||||||
|
|
||||||
|
* NEW: `ds2dd_detailed()`: extension of the `ds2dd()`, which serves to preserve as much metadata as possible automatically. Depends on a group of helper functions also introduced. Of special note is the `guess_time_only_filter()`, which will try to guess which columns/variables should be formatted as time only formats. Supports hms time format. DETAILED INSTRUCTION AND VIGNETTE IS PENDING.
|
||||||
|
|
||||||
### Other
|
### Other
|
||||||
|
|
||||||
|
13
R/ds2dd.R
13
R/ds2dd.R
@ -1,8 +1,13 @@
|
|||||||
utils::globalVariables(c("redcapcast_meta"))
|
utils::globalVariables(c("metadata_names"))
|
||||||
#' Data set to data dictionary function
|
#' (DEPRECATED) Data set to data dictionary function
|
||||||
#'
|
#'
|
||||||
|
#' @description
|
||||||
|
#' Creates a very basic data dictionary skeleton. Please see `ds2dd_detailed()`
|
||||||
|
#' for a more advanced function.
|
||||||
|
#'
|
||||||
|
#' @details
|
||||||
#' Migrated from stRoke ds2dd(). Fits better with the functionality of
|
#' Migrated from stRoke ds2dd(). Fits better with the functionality of
|
||||||
#' 'REDCapCAST'
|
#' 'REDCapCAST'.
|
||||||
#' @param ds data set
|
#' @param ds data set
|
||||||
#' @param record.id name or column number of id variable, moved to first row of
|
#' @param record.id name or column number of id variable, moved to first row of
|
||||||
#' data dictionary, character of integer. Default is "record_id".
|
#' data dictionary, character of integer. Default is "record_id".
|
||||||
@ -16,7 +21,7 @@ utils::globalVariables(c("redcapcast_meta"))
|
|||||||
#' @param include.column.names Flag to give detailed output including new
|
#' @param include.column.names Flag to give detailed output including new
|
||||||
#' column names for original data set for upload.
|
#' column names for original data set for upload.
|
||||||
#' @param metadata Metadata column names. Default is the included
|
#' @param metadata Metadata column names. Default is the included
|
||||||
#' REDCapCAST::redcapcast_data.
|
#' REDCapCAST::metadata_names.
|
||||||
#'
|
#'
|
||||||
#' @return data.frame or list of data.frame and vector
|
#' @return data.frame or list of data.frame and vector
|
||||||
#' @export
|
#' @export
|
||||||
|
Loading…
Reference in New Issue
Block a user