mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-19 13:17:30 +02:00
major overhaul with new functions. docs are lacking
This commit is contained in:
parent
1fd3911974
commit
04f5bec85c
28 changed files with 874 additions and 81 deletions
26
man/char2choice.Rd
Normal file
26
man/char2choice.Rd
Normal 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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue