R: Converts a term into a string

stringifyTerm {jmvcore} | R Documentation

## Converts a term into a string

### Description

Converts a term (a vector of components) into a string for display purposes

### Usage

    stringifyTerm(components, sep = getOption("jmvTermSep", ":"))

### Arguments

`components` | a character vector of components
`sep` | a separator to go between the components

### Value

the components joined together into a string for disply

### Examples

    stringifyTerm(c('a', 'b', 'c'))

    # "a:b:c"

    stringifyTerm(c('a', 'b', 'c'), sep=' * ')

    # "a * b * c"

    options('jmvTermSep', ' * ')
    stringifyTerm(c('a', 'b', 'c'))

    # "a * b * c"

    #' stringifyTerm(c('`quoted`', 'b', 'c'))

    # "quoted * b * c"

[Package jmvcore version 0.8.5 Index]