get_prefix: Get prefixes

Description Usage Arguments Examples

View source: R/get_prefix.R

Description

This function accepts a list of characters and returns a list of unique prefixes.

Usage

1
get_prefix(names, sep = "-", HMP = FALSE)

Arguments

names

list of names to pull prefixes

sep

character string to split names (e.g. "-")

HMP

option to add HMP prefix SRS to list if HMP=TRUE, defaults to HMP=FALSE.

Examples

1
2
get_prefix(colnames(RPKM_m), sep="-")
get_prefix(colnames(RPKM_m), sep="-", HMP= TRUE)

michaelwoodworth/MEP_r documentation built on Jan. 18, 2021, 6:28 p.m.