Learn R Programming

icesTAF (version 3.6.0)

convert.spaces: Convert Spaces

Description

Convert spaces in filenames.

Usage

convert.spaces(file, sep = "_")

Value

TRUE for success, FALSE for failure, invisibly.

Arguments

file

filename, e.g. "file name.csv", "*.csv", or "dir/*".

sep

character to use instead of spaces.

See Also

file.rename is the base function to rename files.

icesTAF-package gives an overview of the package.

Examples

Run this code
if (FALSE) {
write(pi, "A B.txt")
convert.spaces("A B.txt")

## Many files
convert.spaces("bootstrap/initial/data/*")
}

Run the code above in your browser using DataLab