mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-19 13:17:30 +02:00
all data parsing and formatting has been seperated in individual functions
This commit is contained in:
parent
4911d4dbc8
commit
ea08a2066f
7 changed files with 362 additions and 85 deletions
24
man/haven_all_levels.Rd
Normal file
24
man/haven_all_levels.Rd
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/ds2dd_detailed.R
|
||||
\name{haven_all_levels}
|
||||
\alias{haven_all_levels}
|
||||
\title{Finish incomplete haven attributes substituting missings with values}
|
||||
\usage{
|
||||
haven_all_levels(data)
|
||||
}
|
||||
\arguments{
|
||||
\item{data}{haven labelled variable}
|
||||
}
|
||||
\value{
|
||||
named vector
|
||||
}
|
||||
\description{
|
||||
Finish incomplete haven attributes substituting missings with values
|
||||
}
|
||||
\examples{
|
||||
ds <- structure(c(1, 2, 3, 2, 10, 9),
|
||||
labels = c(Unknown = 9, Refused = 10),
|
||||
class = "haven_labelled"
|
||||
)
|
||||
ds |> haven_all_levels()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue