1% Generated by roxygen2: do not edit by hand 2% Please edit documentation in R/data-frame.r 3\name{as.data.frame.function} 4\alias{as.data.frame.function} 5\title{Make a function return a data frame.} 6\usage{ 7\method{as.data.frame}{`function`}(x, row.names, optional, ...) 8} 9\arguments{ 10\item{x}{function to make return a data frame} 11 12\item{row.names}{necessary to match the generic, but not used} 13 14\item{optional}{necessary to match the generic, but not used} 15 16\item{...}{necessary to match the generic, but not used} 17} 18\description{ 19Create a new function that returns the existing function wrapped in a 20data.frame with a single column, \code{value}. 21} 22\details{ 23This is useful when calling \code{*dply} functions with a function that 24returns a vector, and you want the output in rows, rather than columns. 25The \code{value} column is always created, even for empty inputs. 26} 27\keyword{manip} 28