Skip to content

Copenhagen: Improve documentation on the use of backticks #20

@JoaodcPires

Description

@JoaodcPires

For the code

# Create nice labels for case definition:
caselabs <- ggplot2::as_labeller(c(`FALSE` = "Non-case", 
                                   `TRUE` = "Case"))

Adding the notes on the use of backticks:

#Enclosing variable/names in ``
# this is necessary for illegal names. TRUE and FALSE are part of the R syntax.
# In order to select columns or variables that have illegal names, we need to
# enclose them in backticks

caselabs <- ggplot2::as_labeller(c(`FALSE` = "Non-case", 
                                   `TRUE` = "Case"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions