generalized_log
transforms specified observation variables using
\(x = log( (x + sqrt(x ^ 2 + offset ^ 2 )) / 2 )\).
generalized_log(population, variables, offset = 1)
population | tbl with grouping (metadata) and observation variables. |
---|---|
variables | character vector specifying observation variables. |
offset | optional offset parameter for the transformation. |
transformed data of the same class as population
.
population <- tibble::tibble( Metadata_Well = c("A01", "A02", "B01", "B02"), Intensity_DNA = c(8, 20, 12, 32) ) variables <- c("Intensity_DNA") generalized_log(population, variables)#> # A tibble: 4 x 2 #> Metadata_Well Intensity_DNA #> <chr> <dbl> #> 1 A01 2.08 #> 2 A02 3.00 #> 3 B01 2.49 #> 4 B02 3.47