R/mkin_wide_to_long.R
mkin_wide_to_long.Rd
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")
wide_data | The dataframe must contain one variable with the time
values specified by the |
---|---|
time | The name of the time variable. |
Dataframe in long format as needed for mkinfit
.
Johannes Ranke
#> 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