drop_annotation drops row annotations.

drop_annotation(population, annotation_prefix = "Metadata_")

Arguments

population

data.frame with annotations (a.k.a. metadata) and observation variables.

annotation_prefix

optional character string specifying prefix for annotation columns (e.g. "Metadata_" (default)).

Value

data.frame with all columns except row annotations.

Examples

suppressMessages(suppressWarnings(library(magrittr)))
population <- tibble::tibble(
  Metadata_group = c(
    "control", "control", "control", "control",
    "experiment", "experiment", "experiment", "experiment"
  ),
  Metadata_batch = c("a", "a", "b", "b", "a", "a", "b", "b"),
  AreaShape_Area = c(10, 12, 15, 16, 8, 8, 7, 7)
)
matric::drop_annotation(population, annotation_prefix = "Metadata_")
#> # A tibble: 8 × 1
#>   AreaShape_Area
#>            <dbl>
#> 1             10
#> 2             12
#> 3             15
#> 4             16
#> 5              8
#> 6              8
#> 7              7
#> 8              7