% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/S3_conversion.R
\name{as.data.frame.HDF5Matrix}
\alias{as.data.frame.HDF5Matrix}
\title{Convert HDF5Matrix to data.frame}
\usage{
\method{as.data.frame}{HDF5Matrix}(
  x,
  row.names = NULL,
  optional = FALSE,
  force = FALSE,
  max_size_mb = NULL,
  ...
)
}
\arguments{
\item{x}{An \code{HDF5Matrix} object}

\item{row.names}{Logical or character vector. Row names to use.}

\item{optional}{Logical. Passed to \code{as.data.frame}.}

\item{force}{Logical. If \code{TRUE}, skip size warnings.}

\item{max_size_mb}{Numeric. Maximum size in MB to convert without warning.}

\item{...}{Additional arguments passed to \code{as.data.frame}}
}
\value{
data.frame with data from HDF5 file
}
\description{
Reads entire HDF5 dataset into memory as a data.frame.
\strong{WARNING}: This loads all data into RAM.
}
\details{
First converts to matrix using \code{as.matrix.HDF5Matrix} (with same
size checks), then to data.frame. All memory warnings apply.
}
\examples{
\donttest{
    fn <- tempfile(fileext = ".h5")
    X <- hdf5_create_matrix(fn, "data/X", data = matrix(rnorm(500), 100, 5))
    df <- as.data.frame(X)
    hdf5_close_all()
    unlink(fn)
}

}
\seealso{
\code{\link{as.matrix.HDF5Matrix}}
}
