Extract dots from function

dots(..., character = FALSE)

Arguments

...

Objects as dots.

character

logical(1). Return dots (...) as character.

Value

  • "character = FALSE": list. Objects as name class. Can return the object from the name with eval.

  • "character = TRUE": character. Names of the dots.

Note

This function uses non-standard evaluation.

See also

Examples

dots(a, b, c, character = FALSE)
#> [[1]] #> a #> #> [[2]] #> b #> #> [[3]] #> c #>
dots(a, b, c, character = TRUE)
#> [1] "a" "b" "c"