dot-removeSpaceForFilepath: Optimize Filenames Containing States

.removeSpaceForFilepathR Documentation

Optimize Filenames Containing States

Description

Remove space in a State's name for use with filepaths. This is to improve portability for platforms and utilities e.g. make that do not work well with filepaths that have spaces in them.

Usage

.removeSpaceForFilepath(state)

Arguments

state

A character vector of length 1.

Details

If length(state) > 1L, all additional elements are removed silently. Also, state is expected to be a State in Nigeria; illegal input will produce an error and the function will fail.

Value

The State with any speaces replaced with a hyphen

Examples

  .removeSpaceForFilepath("Akwa Ibom")



BroVic/jGBV documentation built on Oct. 9, 2022, 6:38 a.m.