Make syntactically valid names out of character vectors.


This package is part of the basejump toolkit. Refer to its website for installation instructions.


syntactic improves upon the make.names() functionality defined in base R, and is designed to return syntactically valid names from biological metadata. The package exports these primary functions:

Additionally, the package exports these utility functions:

  • makeNames(): modified variant of make.names() that sanitizes using underscores instead of dots.
  • capitalize(): Capitalize the first letter of all words in a character vector.

syntactic is designed to handle many common mixed case acronyms (e.g. mRNA, RNAi), as well as decimals in names. Additionally, the package defines S4 method support for a number of popular Bioconductor S4 classes, including DataFrame and GenomicRanges.