aboutsummaryrefslogblamecommitdiff
path: root/man/mkin_long_to_wide.Rd
blob: 97791e6d6f8c032b680d374e9f71bb66479bc2d1 (plain) (tree)































                                                                                        
\name{mkin_long_to_wide}
\alias{mkin_long_to_wide}
\title{
  Convert a dataframe from long to wide format.
}
\usage{
mkin_long_to_wide(long_data, time = "time")
}
\description{
  This function takes a dataframe in the long form as required by \code{\link{modCost}} 
  and converts it into a dataframe with one independent variable and several 
  dependent variables as columns.
}
\arguments{
  \item{long_data}{
  The dataframe must contain one variable with the time values specified by the 
  \code{time} argument and one column of observed values named "value".
}
  \item{time}{
  The name of the time variable.
}
}
\value{
  Dataframe in wide format.
}
\author{
  Johannes Ranke
}
\examples{
mkin_long_to_wide(FOCUS_2006_D)
}
\keyword{ manip }

Contact - Imprint