mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-21 05:59:07 +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
39
man/parse_data.Rd
Normal file
39
man/parse_data.Rd
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/ds2dd_detailed.R
|
||||
\name{parse_data}
|
||||
\alias{parse_data}
|
||||
\title{Helper to auto-parse un-formatted data with haven and readr}
|
||||
\usage{
|
||||
parse_data(
|
||||
data,
|
||||
guess_type = TRUE,
|
||||
col_types = NULL,
|
||||
locale = readr::default_locale(),
|
||||
ignore.vars = "cpr",
|
||||
...
|
||||
)
|
||||
}
|
||||
\arguments{
|
||||
\item{data}{data.frame or tibble}
|
||||
|
||||
\item{guess_type}{logical to guess type with readr}
|
||||
|
||||
\item{col_types}{specify col_types using readr semantics. Ignored if guess_type is TRUE}
|
||||
|
||||
\item{locale}{option to specify locale. Defaults to readr::default_locale().}
|
||||
|
||||
\item{ignore.vars}{specify column names of columns to ignore when parsing}
|
||||
|
||||
\item{...}{ignored}
|
||||
}
|
||||
\value{
|
||||
data.frame or tibble
|
||||
}
|
||||
\description{
|
||||
Helper to auto-parse un-formatted data with haven and readr
|
||||
}
|
||||
\examples{
|
||||
mtcars |>
|
||||
parse_data() |>
|
||||
str()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue