major overhaul with new functions. docs are lacking

This commit is contained in:
Andreas Gammelgaard Damsbo 2024-05-02 13:31:21 +02:00
commit 04f5bec85c
No known key found for this signature in database
28 changed files with 874 additions and 81 deletions

26
man/char2choice.Rd Normal file
View file

@ -0,0 +1,26 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/doc2dd.R
\name{char2choice}
\alias{char2choice}
\title{Simple function to generate REDCap choices from character vector}
\usage{
char2choice(data, char.split = "/", raw = NULL, .default = NA)
}
\arguments{
\item{data}{vector}
\item{char.split}{splitting character(s)}
\item{raw}{specific values. Can be used for options of same length.}
\item{.default}{default value for missing. Default is NA.}
}
\value{
vector
}
\description{
Simple function to generate REDCap choices from character vector
}
\examples{
char2choice(c("yes/no"," yep. / nope ","",NA,"what"),.default=NA)
}