epi_output_name: Create a name for plots and files to save

Description Usage Arguments Value Author(s) Examples

View source: R/epi_output_name.R

Description

Generate a simple output name, given a string (filename) splits at the last '.', drops the current suffix and adds the one provided.

Usage

1
epi_output_name(input_name = "", suffix = ".tsv")

Arguments

input_name

string to split, usually an input file name previously saved as an object

suffix

any string you wish to add, default is '.tsv'

Value

string value

Author(s)

Antonio Berlanga-Taylor <https://github.com/AntonioJBT/episcout>

Examples

1
2
3
4
5
6
7
## Not run: 
input_name <- 'baseline_clean.RData'
svg(epi_output_name(input_name, '_histogram_obesity_1.svg'))
plot(x, y)
dev.off()

## End(Not run)

AntonioJBT/episcout documentation built on Nov. 7, 2019, 5:34 p.m.