R: Find letters not used in strings

unused_letters {striprtf} | R Documentation

## Find letters not used in strings

### Description

Returns letters not used in strings

### Usage

    unused_letters(
      s,
      n = 1,
      avoid_strifrtf_internal = TRUE,
      as_number = FALSE,
      as_vector = FALSE
    )

### Arguments

`s` | character vector
`n` | number of letters to return
`avoid_strifrtf_internal` | If `TRUE`, letters used in the package's internal process are also regarded as "used".
`as_number` | if `TRUE`, return unicode numbers instead of letters itself
`as_vector` | if `FALSE` (and `as_number` is `FALSE`), return a single concatenated character, otherwise returns a character vector

### Details

This function can be useful when some special characters must be temporarily converted to another letter without being confused with the same letters used elsewhere.

Letters are first searched from `\u0001` upto `\uffff`. Do not specify too large `n`; An error is raised if a sufficient number of unsed letters are not found.

### Value

unsed characters, format depends on `as_number` and `as_vector` arguments

[Package striprtf version 0.5.3 Index]