c( )函数--R语言

函数功能:

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()函数

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值