From af2e1540cdad2fd00bb6216a38a754ff748629ad Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Fri, 25 Oct 2019 02:10:08 +0200 Subject: Static documentation rebuilt by pkgdown --- docs/reference/mkin_wide_to_long.html | 36 ++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) (limited to 'docs/reference/mkin_wide_to_long.html') diff --git a/docs/reference/mkin_wide_to_long.html b/docs/reference/mkin_wide_to_long.html index d8ae913f..523d45e1 100644 --- a/docs/reference/mkin_wide_to_long.html +++ b/docs/reference/mkin_wide_to_long.html @@ -8,11 +8,13 @@ Convert a dataframe with observations over time into long format — mkin_wide_to_long • mkin + + @@ -32,14 +34,16 @@ - - + + + @@ -110,7 +114,6 @@ News - @@ -132,50 +135,49 @@
- -

This function simply takes a dataframe with one independent variable and several - dependent variable and converts it into the long form as required by mkinfit.

- +

This function simply takes a dataframe with one independent variable and +several dependent variable and converts it into the long form as required by +mkinfit.

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.

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

-

Examples

-
wide <- data.frame(t = c(1,2,3), x = c(1,4,7), y = c(3,4,5)) +
+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
+#> 6 y 3 5
+