From af7c6de4db9981ac814362c441fbac22c8faa2d7 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Thu, 24 Nov 2022 09:02:26 +0100 Subject: Start online docs of the development version --- docs/dev/reference/mkin_long_to_wide.html | 233 ++++++++++++------------------ 1 file changed, 90 insertions(+), 143 deletions(-) (limited to 'docs/dev/reference/mkin_long_to_wide.html') diff --git a/docs/dev/reference/mkin_long_to_wide.html b/docs/dev/reference/mkin_long_to_wide.html index 6246fbe2..3e55885f 100644 --- a/docs/dev/reference/mkin_long_to_wide.html +++ b/docs/dev/reference/mkin_long_to_wide.html @@ -1,69 +1,14 @@ - - - - - - - -Convert a dataframe from long to wide format — mkin_long_to_wide • mkin - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Convert a dataframe from long to wide format — mkin_long_to_wide • mkin - - - - - - - - - - - + + - - -
-
- -
- -
+
@@ -151,87 +96,89 @@ 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")
+
+
mkin_long_to_wide(long_data, time = "time", outtime = "time")
+
-

Arguments

- - - - - - - - - - - - - - -
long_data

The dataframe must contain one variable called "time" with +

+

Arguments

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

time

The name of the time variable in the long input data.

outtime

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

- -

Value

- -

Dataframe in wide format.

-

Author

+observed values called "value".

+ + +
time
+

The name of the time variable in the long input data.

+ + +
outtime
+

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

+ +
+
+

Value

+ +

Dataframe in wide format.

+
+
+

Author

Johannes Ranke

+
-

Examples

-
-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 -#> 4 1 92.50 5.64 -#> 5 3 63.23 12.91 -#> 6 3 68.99 12.96 -#> 7 7 52.32 22.97 -#> 8 7 55.13 24.47 -#> 9 14 27.27 41.69 -#> 10 14 26.64 33.21 -#> 11 21 11.50 44.37 -#> 12 21 11.64 46.44 -#> 13 35 2.85 41.22 -#> 14 35 2.91 37.95 -#> 15 50 0.69 41.19 -#> 16 50 0.63 40.01 -#> 17 75 0.05 40.09 -#> 18 75 0.06 33.85 -#> 19 100 NA 31.04 -#> 20 100 NA 33.13 -#> 21 120 NA 25.15 -#> 22 120 NA 33.31
-
+
+

Examples

+

+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
+#> 4     1  92.50  5.64
+#> 5     3  63.23 12.91
+#> 6     3  68.99 12.96
+#> 7     7  52.32 22.97
+#> 8     7  55.13 24.47
+#> 9    14  27.27 41.69
+#> 10   14  26.64 33.21
+#> 11   21  11.50 44.37
+#> 12   21  11.64 46.44
+#> 13   35   2.85 41.22
+#> 14   35   2.91 37.95
+#> 15   50   0.69 41.19
+#> 16   50   0.63 40.01
+#> 17   75   0.05 40.09
+#> 18   75   0.06 33.85
+#> 19  100     NA 31.04
+#> 20  100     NA 33.13
+#> 21  120     NA 25.15
+#> 22  120     NA 33.31
+
+
+
+
- - - + + -- cgit v1.2.1