Why does function c() accept an undocumented argument?

后端 未结 2 559
没有蜡笔的小新
没有蜡笔的小新 2020-12-20 11:31

The documentation for the base function c() shows its default arguments as

c(..., recursive = FALSE)

Now, if we define

<
相关标签:
2条回答
  • 2020-12-20 12:19

    c is an S4 Generic function, which means that a different function is called depending on its arguments.

    Not all of those functions take the argument use.names, so it does not make sense for it to be documented in the documentation for c().

    0 讨论(0)
  • 2020-12-20 12:29

    I think that it is due to the recursive=TRUE which I believe must use the same code as unlist. The use.names parameter is described in ?unlist.

    0 讨论(0)
提交回复
热议问题