R – Understanding how to pass arguments to functions.

Start from this stackoverflow question.

When you pass … (three dots) to a function, you it will be a named list that you can retrieve the argument value by using list(…)$argument name, also ..n (two dots followed by a integer) will retrieve the argument by order. ..2 will retrieve the second one and ..1 will retrieve the first one.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s