% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_Qualtrics.R
\name{read_Qualtrics}
\alias{read_Qualtrics}
\title{Read and re-format a Qualtrics CSV (choice text)}
\usage{
read_Qualtrics(.file, .metadata_rows = NULL)
}
\arguments{
\item{.file}{A character string giving the path to a Qualtrics CSV file.}

\item{.metadata_rows}{Number of metadata rows after the CSV header. The
  default, \code{NULL}, detects current Qualtrics exports (question text plus
  an \code{ImportId} row) and legacy exports (question text only). Supply a
  non-negative integer to override detection.}
}
\value{
A tibble containing response rows only. Column names and physical
  column order are preserved from the Qualtrics export.
}
\description{
Reads a CSV file exported from Qualtrics (with "Use choice text" enabled) and
returns a data frame formatted for downstream processing with
\code{\link{reshape_projoint}}.
}
\examples{
\donttest{
# Write a tiny dummy Qualtrics-style CSV to a temp file
tmp <- tempfile(fileext = ".csv")
readr::write_csv(
  data.frame(Q1 = c("Choice Text", "{\"ImportId\":\"QID1\"}", "A", "B")),
  tmp
)
# Read it back in
df <- read_Qualtrics(tmp)
head(df)
}

}
\seealso{
\code{\link{reshape_projoint}}
}
