Learn R Programming

teal.slice (version 0.5.1)

make_c_call: Build concatenating call

Description

This function takes a vector of values and returns a c call. If the vector has only one element, the element is returned directly.

Usage

make_c_call(choices)

Value

A c call.

Arguments

choices

A vector of values.

Examples

Run this code
# use non-exported function from teal.slice
make_c_call <- getFromNamespace("make_c_call", "teal.slice")
make_c_call(1:3)
make_c_call(1)

Run the code above in your browser using DataLab