get_annotation: Get row annotations.

View source: R/utils.R

get_annotationR Documentation

Get row annotations.

Description

get_annotation gets row annotations.

Usage

get_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 row annotations of the same class as population.

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::get_annotation(population, annotation_prefix = "Metadata_")

matric documentation built on April 1, 2023, 12:19 a.m.