transform: Transform observation variables.

Description Usage Arguments Value Examples

View source: R/transform.R

Description

transform transforms observation variables based on the specified transformation method.

Usage

1
transform(population, variables, operation = "generalized_log", ...)

Arguments

population

tbl with grouping (metadata) and observation variables.

variables

character vector specifying observation variables.

operation

optional character string specifying method for transform. This must be one of the strings "generalized_log" (default), "whiten".

...

arguments passed to transformation operation.

Value

transformed data of the same class as population.

Examples

1
2
3
4
5
6
population <- tibble::tibble(
  Metadata_Well = c("A01", "A02", "B01", "B02"),
  Intensity_DNA = c(8, 20, 12, 32)
)
variables <- c("Intensity_DNA")
transform(population, variables, operation = "generalized_log")

Example output

Attaching package: 'cytominer'

The following object is masked from 'package:stats':

    aggregate

The following object is masked from 'package:base':

    transform

# 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

cytominer documentation built on July 8, 2020, 5:08 p.m.