mkin_wide_to_long: Convert a dataframe with observations over time into long...

Description Usage Arguments Value Author(s) Examples

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 modCost.

Usage

1
mkin_wide_to_long(wide_data, time = "t")

Arguments

wide_data

The dataframe must contain one variable with the time values specified by the time argument and usually more than one column of observed values.

time

The name of the time variable.

Value

Dataframe in long format as needed for modCost.

Author(s)

Johannes Ranke

Examples

1
2
wide <- data.frame(t = c(1,2,3), x = c(1,4,7), y = c(3,4,5))
mkin_wide_to_long(wide)


Search within the mkin package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.