fx.parse_column_names: Parse column names

Description Usage Arguments Details Value

View source: R/plot_drp.R

Description

Parse column names

Usage

1

Arguments

cn

column name

Details

There are numerous ways to access the values stored in the columns of a data.frame. The one using a dollar sign (e.g. df$this_column) is vulnerable to special characters, such as "-", spaces etc. Since the default method of ggplot2 is to use the dollar sign approach, we need to ensure that special characters, which are often part of gene names, are taken care of. This function simply wraps those names into single quotes.

Value

column name enclosed in single quotes


evanbiederstedt/sandbox documentation built on May 26, 2019, 12:31 p.m.