join: Generate JavaScript to join an array object

View source: R/join.R

joinR Documentation

Generate JavaScript to join an array object

Description

This function pastes an object of class rk.JS.arr similar to rk.paste.JS, but was specifically written for elements like <optionset> or <matrix>, whose values must be queried by getList() rather than getValue(). This means, the resulting variable is already an array an merely needs to be joined in as R code output (e.g., an <optioncolumn>).

Usage

join(var, by = "\", \"")

Arguments

var

Either a character string (the name of the variable to combine to a vector or list), or an object of class XiMpLe.node (whose ID will be extracted and used). Also accepts objects of class rk.JS.arr.

by

Character string by which the values ought to be joined.

Value

An object of class rk.JS.echo.

See Also

rk.paste.JS, rk.JS.options, rk.JS.vars, echo, id, and the Introduction to Writing Plugins for RKWard


rkward-community/rkwarddev documentation built on May 9, 2022, 3:02 p.m.