mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-19 13:17:30 +02:00
three new functions and new version
This commit is contained in:
parent
ee396fb811
commit
8bd4d9ade7
11 changed files with 415 additions and 49 deletions
32
man/d2w.Rd
Normal file
32
man/d2w.Rd
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/utils.r
|
||||
\name{d2w}
|
||||
\alias{d2w}
|
||||
\title{Convert single digits to words}
|
||||
\usage{
|
||||
d2w(x, lang = "en", neutrum = FALSE, everything = FALSE)
|
||||
}
|
||||
\arguments{
|
||||
\item{x}{data. Handle vectors, data.frames and lists}
|
||||
|
||||
\item{lang}{language. Danish (da) and English (en), Default is "en"}
|
||||
|
||||
\item{neutrum}{for numbers depending on counted word}
|
||||
|
||||
\item{everything}{flag to also split numbers >9 to single digits}
|
||||
}
|
||||
\value{
|
||||
returns characters in same format as input
|
||||
}
|
||||
\description{
|
||||
Convert single digits to words
|
||||
}
|
||||
\examples{
|
||||
d2w(c(2:8,21))
|
||||
d2w(data.frame(2:7,3:8,1),lang="da",neutrum=TRUE)
|
||||
|
||||
## If everything=T, also larger numbers are reduced.
|
||||
## Elements in the list are same length as input
|
||||
d2w(list(2:8,c(2,6,4,23),2), everything=TRUE)
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue