strip_quotes: strip_quotes

Description Usage Arguments Details Value Examples

Description

strip off the first and last characters of each element of a character vector

Usage

1

Arguments

x

character vector

Details

I've always found this useful with character vectors containing quoted elements (e.g. if quoting was inconsistent in the file you read the vector from).

Value

x, but with first and last characters stripped from all elements

Examples

1
2
gene_names = c('"OCT4"', '"BRCA1"', '"ZZZ3"')
genes_noquote = strip_quotes(gene_names)

alyssafrazee/usefulstuff documentation built on May 12, 2019, 2:33 a.m.