Learn R Programming

path.chain (version 1.0.0)

naming_k: Naming convention, which adds k prefix for each key, capitalizes and removes file extension

Description

Naming convention, which adds k prefix for each key, capitalizes and removes file extension

Usage

naming_k(path)

Arguments

path

full path or its element

Examples

Run this code
library(magrittr)
naming_k("path/to/myfile.txt")
# Using with full_path_chain
tmp <- create_temp_dir("files")
create_sample_dir(tmp, override = TRUE)
full.path.chain <- full_path_chain(tmp, naming = naming_k)
full.path.chain
tmp <- create_temp_dir("files")
create_sample_dir(tmp)
# Using with path_chain / create_path_chain
path.chain <- path_chain(tmp, naming = naming_k)
path.chain %>%
  as.list()

Run the code above in your browser using DataLab