Description Usage Arguments Details Value Examples
strip off the first and last characters of each element of a character vector
1 | strip_quotes(x)
|
x |
character vector |
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).
x
, but with first and last characters stripped from all
elements
1 2 | gene_names = c('"OCT4"', '"BRCA1"', '"ZZZ3"')
genes_noquote = strip_quotes(gene_names)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.