uniqueFieldname: Identify a unique fieldname from data.

View source: R/analysisFuns.R

uniqueFieldnameR Documentation

Identify a unique fieldname from data.

Description

Returns a character with the fieldname(s) present in the data. Unique name for the field(s) analyzed. If multiple fields are used they are separated by an ampersand, otherwise the singular field name is used. This is used for plotting. Can pass in a data.frame with a column named 'field', or a vector of fieldnames.

Usage

uniqueFieldname(dat)

Arguments

dat

data.frame with a column called 'field' to produce a unique fieldname from, or a vector of fieldnames.

Value

Character with unique field name.


paulhegedus/OFPE documentation built on Nov. 23, 2022, 5:09 a.m.