get_sample_names() is a helper function that returns the unique sample
names present in a tidyproteomics data object.
Usage
get_sample_names(data = NULL, format = c("table", "vector"))Arguments
- data
tidyproteomics data object
- format
a character string specifying the return format: "table" (default) or "vector"
Examples
library(tidyproteomics)
get_sample_names(hela_proteins)
#> # A tibble: 2 × 2
#> sample replicates
#> <chr> <int>
#> 1 control 3
#> 2 knockdown 3
get_sample_names(hela_proteins, format = "vector")
#> [1] "control" "knockdown"
