diff options
author | jranke <jranke@edb9625f-4e0d-4859-8d74-9fd3b1da38cb> | 2010-05-18 12:58:38 +0000 |
---|---|---|
committer | jranke <jranke@edb9625f-4e0d-4859-8d74-9fd3b1da38cb> | 2010-05-18 12:58:38 +0000 |
commit | 16f5b1d3c0136413e92b2be0f20d365e92e9cd1c (patch) | |
tree | edab7b27ba4253b9dd45520e504c54851f65f26f /man/mkin_wide_to_long.Rd | |
parent | 30cbb4092f6d2d3beff5800603374a0d009ad770 (diff) |
Much more complete version that was just submitted to CRAN.
git-svn-id: svn+ssh://svn.r-forge.r-project.org/svnroot/kinfit/pkg/mkin@9 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
Diffstat (limited to 'man/mkin_wide_to_long.Rd')
-rw-r--r-- | man/mkin_wide_to_long.Rd | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/man/mkin_wide_to_long.Rd b/man/mkin_wide_to_long.Rd new file mode 100644 index 0000000..d3dd200 --- /dev/null +++ b/man/mkin_wide_to_long.Rd @@ -0,0 +1,32 @@ +\name{mkin_wide_to_long} +\alias{mkin_wide_to_long} +\title{ + Convert a dataframe with observations over time into long format. +} +\usage{ +mkin_wide_to_long(wide_data, time = "t") +} +\description{ + This function simply takes a dataframe with one independent variable and several + dependent variable and converts it into the long form as required by \code{\link{modCost}}. +} +\arguments{ + \item{wide_data}{ + The dataframe must contain one variable with the time values specified by the + \code{time} argument and usually more than one column of observed values. +} + \item{time}{ + The name of the time variable. +} +} +\value{ + Dataframe in long format as needed for \code{\link{modCost}}. +} +\author{ + Johannes Ranke +} +\examples{ +wide <- data.frame(t = c(1,2,3), x = c(1,4,7), y = c(3,4,5)) +mkin_wide_to_long(wide) +} +\keyword{ manip } |