mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-19 05:07:30 +02:00
formatting
This commit is contained in:
parent
e1509188ff
commit
4f47c2ac5d
5 changed files with 11 additions and 6 deletions
|
|
@ -22,11 +22,11 @@ returns characters in same format as input
|
|||
Convert single digits to words
|
||||
}
|
||||
\examples{
|
||||
d2w(c(2:8,21))
|
||||
d2w(data.frame(2:7,3:8,1),lang="da",neutrum=TRUE)
|
||||
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)
|
||||
d2w(list(2:8, c(2, 6, 4, 23), 2), everything = TRUE)
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,5 +26,5 @@ easing the split around the defined delimiter, see example.
|
|||
}
|
||||
\examples{
|
||||
test <- c("12 months follow-up", "3 steps", "mRS 6 weeks", "Counting to 231 now")
|
||||
strsplitx(test,"[0-9]",type="around")
|
||||
strsplitx(test, "[0-9]", type = "around")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue