strToFileName: String to File Name

Description Usage Arguments Value Examples

View source: R/utils.R

Description

This function parses a string to a format easier to use in filenames by removing spaces and replacing with a symbol like "-" and converting all letters to lowercase and removing special symbols.

Usage

1
strToFileName(s, sep = "-")

Arguments

s

string parameter to convert to (string)

sep

optional parameter, symbol to separate words by, default is "-" (string)

Value

returns a parsed string formatted better for filenames

Examples

1
strToFileName(s = "This is an example FiLeNme with# (symbols >=4) to remove")

melren/effiplot documentation built on May 4, 2019, 7:37 a.m.