substitute_non_alphanumeric_and_punctuation: Remove non-alphanumeric and punctuation characters from...

Description Usage Arguments Examples

View source: R/substitute_non_alphanumeric_and_punctuation.R

Description

A wrapper for gsub that substitutes non-alphanumeric and punctuation characters by "_". Initially idealized for generating filenames without reserved characters.

Usage

1
2
substitute_non_alphanumeric_and_punctuation(x,
  pattern = "[^A-Za-z0-9,;._-]", replacement = "_")

Arguments

x

the string to process.

pattern

see ?gsub.

replacement

see ?gsub.

Examples

1
substitute_non_alphanumeric_and_punctuation("1 !#$%* 11 ;'. R Tutorial")

mtcruz/mtcruzr documentation built on Dec. 26, 2019, 11:04 p.m.