Skip to contents

Use this function to rescale a vector using the first entry

Usage

crrct0(x)

Arguments

x

a numeric vector

Value

a numeric vector

Examples


if (FALSE) { # \dontrun{
data.frame(group = c(rep("A", 4), rep("B", 4))
          ,order = c(1:4, 1:4)) %>%
 mutate(value = 2*order+rnorm(8, 5)) %>%
 group_by(group) %>%
 mutate(value_corrected = crrct0(value))
 } # }