splice

0th

Percentile

Splice objects and lists of objects into a list

This splices all arguments into a list. Non-list objects and lists with a S3 class are encapsulated in a list before concatenation.

Usage
splice(...)
Arguments
...
Objects to concatenate.
Aliases
  • splice
Examples
inputs <- list(arg1 = "a", arg2 = "b")

# splice() concatenates the elements of inputs with arg3
str(splice(inputs, arg3 = c("c1", "c2")))
str(list(inputs, arg3 = c("c1", "c2")))
str(c(inputs, arg3 = c("c1", "c2")))
Documentation reproduced from package rlang, version 0.0.0.9000, License: GPL-3

Community examples

Looks like there are no examples yet.