analyze_three_dots {lazy.tools}R Documentation

Analyze Three Dots and Return the Names and the Values

Description

Analyze Three Dots and Return the Names and the Values

Usage

analyze_three_dots(..., print_the_result = 0)

Arguments

...

The three dots to be analyzed.

print_the_result

= 1 to print the result

Details

... will be analyzed and the pair of ( name, val ) will be returned.

Value

A list of:
name A vector consisting of the names of each of ...
val A list consisting of the values of each of ... or NULL

Examples

cc="cccc"
analyze_three_dots( a=1, b=c(2,3), cc, list(aa=1,2), diag(2) )

# a function to print all of ... with names
mprint <- function( ... ){
 atd <- analyze_three_dots( ... )
 for( i in 1:length(atd) ){
  cat(atd$name[i],"\n")
  print(atd$val[[i]])
 }
}

mprint( 1:5, b=7:11 )


[Package lazy.tools version 0.1.3 Index]