blob: e76709b91ed6de6ceb506263fc841ede479e8b0c (
plain) (
tree)
|
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mkin_long_to_wide.R
\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")
}
\arguments{
\item{long_data}{The dataframe must contain one variable called "time" with
the time values specified by the \code{time} argument, one column called
"name" with the grouping of the observed values, and finally one column of
observed values called "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.
}
\description{
This function takes a dataframe in the long form, i.e. with a row for each
observed value, and converts it into a dataframe with one independent
variable and several dependent variables as columns.
}
\examples{
mkin_long_to_wide(FOCUS_2006_D)
}
\author{
Johannes Ranke
}
|