create_name {cbpManager} | R Documentation

## Sanitize names

### Description

This function takes a character string, replaces spaces by underscores and runs make.names.

### Usage

    create_name(x, toupper = TRUE)

### Arguments

`x` | A character string.
`toupper` | If TRUE, the name wil be upper-case; if FALSE, the name will be lower-case.

### Value

A sanitized string.

### Examples

    cbpManager:::create_name("Study name 1") #returns "STUDY_NAME_1"
    cbpManager:::create_name("FANCY;name", toupper = FALSE) #returns "fancy.name"

[Package cbpManager version 1.2.2 Index]