% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inspect_write.R
\name{inspect_write}
\alias{inspect_write}
\title{Inspect a data frame and write the output to an Excel file}
\usage{
inspect_write(data_frame, output_path, output_label = NULL)
}
\arguments{
\item{data_frame}{A data frame to inspect.}

\item{output_path}{Character. Folder path where the Excel output will be written.}

\item{output_label}{Character. Optional label for the output file.
If \code{NULL}, defaults to the deparsed name of \code{data_frame}.}
}
\value{
Invisibly returns the path to the written Excel file.
The file contains the inspection table with prepended observation and variable counts.
}
\description{
Inspect a data frame and write the output to an Excel file
}
\examples{
mydir <- file.path(tempdir(), "inspect_write_example")
dir.create(mydir)
inspect_write(data_frame = cars,
              output_path = mydir,
              output_label = "cars")
readxl::read_xlsx(file.path(mydir, "inspect_cars.xlsx"))
unlink(mydir, recursive = TRUE)
}
