% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/import.R
\name{extract_questions}
\alias{extract_questions}
\title{Extract Questions from Glint Survey}
\usage{
extract_questions(data, emp_id_col = NULL)
}
\arguments{
\item{data}{A data frame or glint_survey object containing survey data}

\item{emp_id_col}{Character string specifying the employee ID column name.
When \code{data} is a \code{glint_survey} object this is resolved
automatically from \code{data$metadata$emp_id_col}. Required when
\code{data} is a plain data frame.}
}
\value{
A tibble with one row per question containing:
\describe{
\item{question}{The question text}
\item{response_col}{Column name for numeric responses}
\item{comment_col}{Column name for comments}
\item{topics_col}{Column name for comment topics}
\item{flag_col}{Column name for sensitive comment flags}
}
}
\description{
Parses column names to extract unique questions and their associated column names.
}
\examples{
survey_path <- system.file("extdata", "survey_export.csv", package = "vivaglint")
survey <- read_glint_survey(survey_path, emp_id_col = "EMP ID")
questions <- extract_questions(survey)
print(questions)
}
