make_filename: A function to create a filename based on tagging and value...

Description Usage Arguments Value

View source: R/naming_functions.R

Description

A function to create a filename based on tagging and value schemas.

Usage

1
2
make_filename(proj.name, tags, values, tag.delim = ".",
  component.delim = "_", data.type)

Arguments

proj.name

character. Project name; the filename will start with it

tags

list. List with a "tagging schema": list elements contain tags for specific components of the name. E.g. list(markup = "mk", analysis = "an").

values

list. List with a "values schema": lsit elements contain values for the components of the name associated with a specific analysis. E.g. list(markup = "like-parker", analysis = "variant4")

tag.delim

character. The character which will be used as a delimiter between component tags and values

component.delim

character. The character which will be used as a delimiter between components tags

data.type

optional string specifying type of the data stored in the file. it will be added after the project name but before the tags. E.g., if data.type = "data", and the tags and values are as in the examples above, the name could be project1_data_mk.parker-like_an.variant4

Value

string. Filename, starting with project name E.g. project1_mk.parker-like_an.variant4


antonmalko/ettools documentation built on May 28, 2019, 3:35 p.m.