% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gridtable.R
\name{as.data.frame.gridtable}
\alias{as.data.frame.gridtable}
\title{Coerce a gridtable to a Calibrated Data Frame}
\usage{
\method{as.data.frame}{gridtable}(
  x,
  row.names = NULL,
  optional = FALSE,
  ...,
  scale = getOption("tablet.gridtable.scale", 1)
)
}
\arguments{
\item{x}{Character scalar with class \code{gridtable}.}

\item{row.names}{Optional row names for the returned data frame.}

\item{optional}{Currently unused; accepted for compatibility with
\code{as.data.frame}.}

\item{...}{Currently unused.}

\item{scale}{Numeric scalar multiplier applied to grid-table dash counts
when deriving column-level \code{width} attributes.}
}
\value{
A data frame with class \code{c("calibrated", "data.frame")}.
  Each column has a \code{width} attribute derived from the final grid
  table dash count multiplied by \code{scale} and encoded as an em width.
}
\description{
Parse a validated gridtable object directly to a calibrated data frame.
Columns have \code{width} attributes suggested by the grid table spans.
Continuation lines within a grid-table cell are collapsed with single spaces.
Cell markup is otherwise left untouched for downstream renderers.
}
\seealso{
\code{\link{as_gridtable.character}}, \code{\link{as_calibrated.data.frame}}

Other gridtable: 
\code{\link{as_calibrated}()},
\code{\link{as_calibrated.data.frame}()},
\code{\link{as_gridtable}()},
\code{\link{as_gridtable.character}()},
\code{\link{as_gridtable.data.frame}()},
\code{\link{kbl}()},
\code{\link{kbl.calibrated}()},
\code{\link{kbl.default}()},
\code{\link{kbl.gridtable}()},
\code{\link{print.gridtable}()}
}
\concept{gridtable}
