Learn R Programming

openxlsx2 (version 1.7)

clean_worksheet_name: Clean worksheet name

Description

Cleans a worksheet name by removing legal characters.

Usage

clean_worksheet_name(x, replacement = " ")

Value

x with bad characters removed

Arguments

x

A vector, coerced to character

replacement

A single value to replace illegal characters by.

Details

Illegal characters are considered \, /, ?, *, :, [, and ]. These must be intentionally removed from worksheet names prior to creating a new worksheet.