% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prep_study2meta.R
\name{prep_study2meta}
\alias{prep_study2meta}
\title{Guess a meta data frame from study data.}
\usage{
prep_study2meta(
  study_data,
  level = c(VARATT_REQUIRE_LEVELS$REQUIRED, VARATT_REQUIRE_LEVELS$OPTIONAL),
  convert_factors = FALSE
)
}
\arguments{
\item{study_data}{\link{data.frame} the data frame that contains the measurements}

\item{level}{\link{enum} level to provide (see also \link{VARATT_REQUIRE_LEVELS})}

\item{convert_factors}{\link{logical} convert the}
}
\value{
a meta_data data frame
}
\description{
Guess a minimum meta data frame from study data. Minimum required variable
attributes are:
}
\details{
\if{html}{\out{<div class="sourceCode r">}}\preformatted{dataquieR:::util_get_var_att_names_of_level(VARATT_REQUIRE_LEVELS$REQUIRED)
#>      VAR_NAMES      DATA_TYPE   MISSING_LIST 
#>    "VAR_NAMES"    "DATA_TYPE" "MISSING_LIST"
}\if{html}{\out{</div>}}

The function also tries to detect missing codes.
}
