mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-19 13:17:30 +02:00
cleaning and fixes for a minor release
This commit is contained in:
parent
7d82eeebd4
commit
8d20901636
29 changed files with 122 additions and 41 deletions
|
|
@ -1,5 +1,5 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/REDCap_split.r
|
||||
% Please edit documentation in R/REDCap_split.R
|
||||
\name{REDCap_split}
|
||||
\alias{REDCap_split}
|
||||
\title{Split REDCap repeating instruments table into multiple tables}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/utils.r
|
||||
% Please edit documentation in R/utils.R
|
||||
\name{clean_redcap_name}
|
||||
\alias{clean_redcap_name}
|
||||
\title{clean_redcap_name}
|
||||
|
|
@ -17,3 +17,6 @@ Stepwise removal on non-alphanumeric characters, trailing white space,
|
|||
substitutes spaces for underscores and converts to lower case.
|
||||
Trying to make up for different naming conventions.
|
||||
}
|
||||
\examples{
|
||||
"Research!, ne:ws? and c;l-.ls" |> clean_redcap_name()
|
||||
}
|
||||
|
|
|
|||
22
man/cut_string_length.Rd
Normal file
22
man/cut_string_length.Rd
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/utils.R
|
||||
\name{cut_string_length}
|
||||
\alias{cut_string_length}
|
||||
\title{Cut string to desired length}
|
||||
\usage{
|
||||
cut_string_length(data, l = 100)
|
||||
}
|
||||
\arguments{
|
||||
\item{data}{data}
|
||||
|
||||
\item{l}{length}
|
||||
}
|
||||
\value{
|
||||
character string of length l
|
||||
}
|
||||
\description{
|
||||
Cut string to desired length
|
||||
}
|
||||
\examples{
|
||||
"length" |> cut_string_length(l=3)
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/utils.r
|
||||
% Please edit documentation in R/utils.R
|
||||
\name{d2w}
|
||||
\alias{d2w}
|
||||
\title{Convert single digits to words}
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ iris |>
|
|||
form.name = sample(c("b", "c"), size = 6, replace = TRUE, prob = rep(.5, 2))
|
||||
) |>
|
||||
purrr::pluck("meta")
|
||||
mtcars |> ds2dd_detailed(add.auto.id = TRUE)
|
||||
mtcars |> numchar2fct() |> ds2dd_detailed(add.auto.id = TRUE)
|
||||
|
||||
## Using column name suffix to carry form name
|
||||
data <- iris |>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
\alias{easy_redcap}
|
||||
\title{Secure API key storage and data acquisition in one}
|
||||
\usage{
|
||||
easy_redcap(project.name, widen.data = TRUE, uri, ...)
|
||||
easy_redcap(project.name, widen.data = TRUE, uri, raw_or_label = "both", ...)
|
||||
}
|
||||
\arguments{
|
||||
\item{project.name}{The name of the current project (for key storage with
|
||||
|
|
@ -14,6 +14,10 @@ easy_redcap(project.name, widen.data = TRUE, uri, ...)
|
|||
|
||||
\item{uri}{REDCap database API uri}
|
||||
|
||||
\item{raw_or_label}{argument passed on to
|
||||
\link[REDCapCAST]{read_redcap_tables}. Default is "both" to get labelled
|
||||
data.}
|
||||
|
||||
\item{...}{arguments passed on to \link[REDCapCAST]{read_redcap_tables}.}
|
||||
}
|
||||
\value{
|
||||
|
|
@ -24,6 +28,6 @@ Secure API key storage and data acquisition in one
|
|||
}
|
||||
\examples{
|
||||
\dontrun{
|
||||
easy_redcap("My_new_project",fields=c("record_id","age","hypertension"))
|
||||
easy_redcap("My_new_project", fields = c("record_id", "age", "hypertension"))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/utils.r
|
||||
% Please edit documentation in R/utils.R
|
||||
\name{focused_metadata}
|
||||
\alias{focused_metadata}
|
||||
\title{focused_metadata}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/utils.r
|
||||
% Please edit documentation in R/utils.R
|
||||
\name{get_id_name}
|
||||
\alias{get_id_name}
|
||||
\title{Get the id name}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/utils.r
|
||||
% Please edit documentation in R/utils.R
|
||||
\name{is_repeated_longitudinal}
|
||||
\alias{is_repeated_longitudinal}
|
||||
\title{Test if repeatable or longitudinal}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/utils.r
|
||||
% Please edit documentation in R/utils.R
|
||||
\name{match_fields_to_form}
|
||||
\alias{match_fields_to_form}
|
||||
\title{Match fields to forms}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/process_user_input.r
|
||||
% Please edit documentation in R/process_user_input.R
|
||||
\name{process_user_input}
|
||||
\alias{process_user_input}
|
||||
\title{User input processing}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/process_user_input.r
|
||||
% Please edit documentation in R/process_user_input.R
|
||||
\name{process_user_input.character}
|
||||
\alias{process_user_input.character}
|
||||
\title{User input processing character}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/process_user_input.r
|
||||
% Please edit documentation in R/process_user_input.R
|
||||
\name{process_user_input.data.frame}
|
||||
\alias{process_user_input.data.frame}
|
||||
\title{User input processing data.frame}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/process_user_input.r
|
||||
% Please edit documentation in R/process_user_input.R
|
||||
\name{process_user_input.default}
|
||||
\alias{process_user_input.default}
|
||||
\title{User input processing default}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/process_user_input.r
|
||||
% Please edit documentation in R/process_user_input.R
|
||||
\name{process_user_input.response}
|
||||
\alias{process_user_input.response}
|
||||
\title{User input processing response}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/utils.r
|
||||
% Please edit documentation in R/utils.R
|
||||
\name{sanitize_split}
|
||||
\alias{sanitize_split}
|
||||
\title{Sanitize list of data frames}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/utils.r
|
||||
% Please edit documentation in R/utils.R
|
||||
\name{split_non_repeating_forms}
|
||||
\alias{split_non_repeating_forms}
|
||||
\title{Split a data frame into separate tables for each form}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/utils.r
|
||||
% Please edit documentation in R/utils.R
|
||||
\name{strsplitx}
|
||||
\alias{strsplitx}
|
||||
\title{Extended string splitting}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue