c( )函数

您所在的位置:网站首页 r语言interactionplot c( )函数

c( )函数

2023-08-13 04:54| 来源: 网络整理| 查看: 265

函数功能:

Combine Values into a Vector or List This is a generic function which combines its arguments. The default method combines its arguments to form a vector. All arguments are coerced to a common type w hich is the type of the returned value, and all attributes except names are removed.

将值合并成向量或列表 这是将参数合并成为一个向量的默认方法,所有参数将强制转换成返回值的类型,且除名称之外的属性都将被移除。

函数语法

c(..., recursive = FALSE, use.names = TRUE)

函数参数

1) ... objects to be concatenated.

要合并的对象

后面两个参数的含义具体还没有明白

2) recursive logical. If recursive = TRUE, the function recursively descends through lists (and pairlists) combining all their elements into a vector.

递归:逻辑型。当recursive = TRUE,以递归方式遍历列表(和成对列表),将其所有元素组合成一个向量。

use.names logical indicating if names should be preserved.

逻辑值:指示是否保存名称。 在这里插入图片描述 官方文档C()函数



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3