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_long_to_wide.html | 40 +++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'docs/reference/mkin_long_to_wide.html') diff --git a/docs/reference/mkin_long_to_wide.html b/docs/reference/mkin_long_to_wide.html index 169aefd4..bb7c263a 100644 --- a/docs/reference/mkin_long_to_wide.html +++ b/docs/reference/mkin_long_to_wide.html @@ -8,11 +8,13 @@ Convert a dataframe from long to wide format — mkin_long_to_wide • mkin + + @@ -32,15 +34,16 @@ - - + + + @@ -111,7 +114,6 @@ News - @@ -133,23 +135,22 @@
- -

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.

- +

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.

mkin_long_to_wide(long_data, time = "time", outtime = "time")
- +

Arguments

- + @@ -160,14 +161,14 @@
long_data

The dataframe must contain one variable called "time" with the time values specified by the - time argument, one column called "name" with the grouping of the observed values, and - finally one column of observed values called "value".

The dataframe must contain one variable called "time" with +the time values specified by the time argument, one column called +"name" with the grouping of the observed values, and finally one column of +observed values called "value".

time

The name of the time variable in the wide output data.

- +

Value

Dataframe in wide format.

-

Examples

-
mkin_long_to_wide(FOCUS_2006_D)
#> time parent m1 +
+mkin_long_to_wide(FOCUS_2006_D)
#> time parent m1 #> 1 0 99.46 0.00 #> 2 0 102.04 0.00 #> 3 1 93.50 4.84 @@ -189,15 +190,14 @@ #> 19 100 NA 31.04 #> 20 100 NA 33.13 #> 21 120 NA 25.15 -#> 22 120 NA 33.31
+#> 22 120 NA 33.31
+