aboutsummaryrefslogtreecommitdiff
path: root/man/mkin_long_to_wide.Rd
blob: 6fa18606e66b68e80ae4594310d16d6e1969fbc8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
\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", outtime = "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 in the long input data.
}
  \item{outtime}{
  The name of the time variable in the wide output data.
}
}
\value{
  Dataframe in wide format.
}
\author{
  Johannes Ranke
}
\examples{
mkin_long_to_wide(FOCUS_2006_D)
}
\keyword{ manip }

Contact - Imprint