% Generated by roxygen2: do not edit by hand
\name{as.data.frame}
\alias{as.data.frame}
\title{Convert to a Data Frame}
\arguments{
  \item{x}{an object to be converted
}
}

\details{
Convert a matrix to a data.frame
\code{
A <- matrix(1:50, ncol = 5)
as.data.frame(A)
}

Convert a list to a data.frame
\code{
B <- list(
  "id" = 1:5,
  "x1" = rnorm(5),
  "x2" = runif(5)
)
as.data.frame(B)
}}

