From 3151647526f299686b68420a83ae38cd7f3d08f5 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Mon, 9 Nov 2015 09:05:15 +0100 Subject: Rebuild vignettes and static documentation --- inst/web/mkin_wide_to_long.html | 127 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 inst/web/mkin_wide_to_long.html (limited to 'inst/web/mkin_wide_to_long.html') diff --git a/inst/web/mkin_wide_to_long.html b/inst/web/mkin_wide_to_long.html new file mode 100644 index 00000000..57e3e8ef --- /dev/null +++ b/inst/web/mkin_wide_to_long.html @@ -0,0 +1,127 @@ + + + + +mkin_wide_to_long. mkin 0.9-41 + + + + + + + + + + + + + + + + + +
+
+ +
+ +

+ Convert a dataframe with observations over time into long format +

+ +
+
+

Usage

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

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.

+ +
+ +
+

Value

+ +

+ Dataframe in long format as needed for modCost. +

+ +
+ +

Examples

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

Author

+ + Johannes Ranke + + +
+
+ + +
+ + \ No newline at end of file -- cgit v1.2.1