Learn R Programming

dmdScheme (version 1.3.5)

lookup_tokens: Replace tokens with vlues from a dmdScheme

Description

For a detailed explanation of these tokens see the vignette Create and Customize the index Template.

Usage

lookup_tokens(tokens, scheme, author = "")

Value

a list of the length of the input vector tokens

containing the objects returned by the tokens. Null if the tokens contains invalid values.

Arguments

tokens

a character vector containing tokens. These can be enclosed in %%TOKEN%% or not.

scheme

a dmdSchemeSet object

author

the author of the index document

Examples

Run this code
lookup_tokens(
  tokens = c(
      "%%Treatments.*.2%%",
     "%%Experiment.*.*%%",
     "Measurement.method.3"
   ),
  scheme = dmdScheme_example(),
)

Run the code above in your browser using DataLab