找回密码
 注册
查看: 425|回复: 0

R语言 slam包 abind()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 09:53:39 | 显示全部楼层 |阅读模式
abind(slam)
abind()所属R语言包:slam

                                        Combine Sparse Arrays
                                         结合稀疏数组

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Combine a sequence of (sparse) arrays, matrices, or vectors
结合(稀疏)阵列,矩阵或向量的序列的


用法----------Usage----------



abind_simple_sparse_array(..., MARGIN = 1L)
extend_simple_sparse_array(x, MARGIN = 0L)



参数----------Arguments----------

参数:...
R objects of (or coercible to) class simple_sparse_array.
(或强制转换)类simple_sparse_arrayR对象。


参数:MARGIN
The dimension along which to bind the arrays.
尺寸沿绑定的阵列。


参数:x
An object of class simple_sparse_array.
对象的类simple_sparse_array。


Details

详细信息----------Details----------

abind_simple_sparse_array automatically extends the dimensions of the elements of "..." before it combines them along the dimension specified in MARGIN. If a negative value is specified first all elements are extended left of the target dimension.
abind_simple_sparse_array自动的元素的尺寸延伸......“之前,它结合了他们沿着在MARGIN指定的维度。如果有一个负的值指定为第一个目标维度,所有的元素都伸左手。

extend_simple_sparse_array inserts one (or more) one-level dimension(s) into x to the right of the position(s) specified in MARGIN, or to the left if specified in negative terms. Note that the target positions must all be in the range of the dimensions of x (see Examples).
extend_simple_sparse_array插入一个(或多个)一个级别的尺寸(S)到x指定的MARGIN到正确的位置(S),或指定的左负。请注意,都必须在目标位置的尺寸范围内的x(见例)。


值----------Value----------

An object of class simple_sparse_array where the dimnames are taken from the elements of "...".
类的一个对象simple_sparse_array其中dimnames的元素的...。


(作者)----------Author(s)----------



Christian Buchta




参见----------See Also----------

simple_sparse_array for sparse arrays.
simple_sparse_array稀疏数组。


实例----------Examples----------


## automatic[#自动]
abind_simple_sparse_array(1:3, array(4:6, c(1,3)))
abind_simple_sparse_array(1:3, array(4:6, c(3,1)), MARGIN = 2L)

## manual[手动的]
abind_simple_sparse_array(1:3, 4:6)
abind_simple_sparse_array(1:3, 4:6, MARGIN = -2L)   ## by columns[#列]
abind_simple_sparse_array(1:3, 4:6, MARGIN = -1L)   ## by rows[#行]

##[#]
a <- as.simple_sparse_array(1:3)
a
extend_simple_sparse_array(a, c( 0L, 1L))
extend_simple_sparse_array(a, c(-1L,-2L))   ## the same[#]
extend_simple_sparse_array(a, c( 1L, 1L))

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-25 22:47 , Processed in 0.021976 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表