epi_output_name: Create a name for plots and files to save

View source: R/epi_output_name.R

epi_output_nameR Documentation

Create a name for plots and files to save

Description

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

Usage

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

## 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 June 11, 2025, 7:26 p.m.