Skip to contents

Reshape the wide data to long data

Usage

reshape_drcData(dat, replicate_col = "Replicates")

Arguments

dat

data table with Replicate columns and dose groups

replicate_col

name of the replicate column or columns need to be retained as identifier columns.

Value

long format of the dat

Examples

 reshape_drcData(collembola_juveniles) ## note collembola_juveniles is fake data.
#> # A tibble: 40 × 4
#>    Replicates Treatment Response  Dose
#>         <int> <chr>        <dbl> <dbl>
#>  1          1 Control        248     0
#>  2          1 18             146    18
#>  3          1 32             116    32
#>  4          1 56             255    56
#>  5          1 100            291   100
#>  6          1 178            244   178
#>  7          1 316            122   316
#>  8          1 562            125   562
#>  9          1 1000           271  1000
#> 10          2 Control        388     0
#> # ℹ 30 more rows