bind-arrays: Bind arrays along their rows or columns

Description Usage Arguments Value See Also Examples

Description

Bind array-like objects with an arbitrary number of dimensions along their rows (arbind) or columns (acbind).

Usage

1
2

Arguments

...

The array-like objects to bind.

Value

An array-like object, typically of the same class as the input objects if they all have the same class.

See Also

Examples

1
2
3
4
5
6
7
8
a1 <- array(1:60, c(3, 5, 4),
            dimnames=list(NULL, paste0("M1y", 1:5), NULL))
a2 <- array(101:240, c(7, 5, 4),
            dimnames=list(paste0("M2x", 1:7), paste0("M2y", 1:5), NULL))
a3 <- array(10001:10100, c(5, 5, 4),
            dimnames=list(paste0("M3x", 1:5), NULL, paste0("M3z", 1:4)))

arbind(a1, a2, a3)

Example output

Loading required package: stats4
Loading required package: Matrix
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package:BiocGenericsThe following objects are masked frompackage:parallel:

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked frompackage:stats:

    IQR, mad, sd, var, xtabs

The following objects are masked frompackage:base:

    anyDuplicated, append, as.data.frame, basename, cbind, colnames,
    dirname, do.call, duplicated, eval, evalq, Filter, Find, get, grep,
    grepl, intersect, is.unsorted, lapply, Map, mapply, match, mget,
    order, paste, pmax, pmax.int, pmin, pmin.int, Position, rank,
    rbind, Reduce, rownames, sapply, setdiff, sort, table, tapply,
    union, unique, unsplit, which.max, which.min

Loading required package: MatrixGenerics
Loading required package: matrixStats

Attaching package:MatrixGenericsThe following objects are masked frompackage:matrixStats:

    colAlls, colAnyNAs, colAnys, colAvgsPerRowSet, colCollapse,
    colCounts, colCummaxs, colCummins, colCumprods, colCumsums,
    colDiffs, colIQRDiffs, colIQRs, colLogSumExps, colMadDiffs,
    colMads, colMaxs, colMeans2, colMedians, colMins, colOrderStats,
    colProds, colQuantiles, colRanges, colRanks, colSdDiffs, colSds,
    colSums2, colTabulates, colVarDiffs, colVars, colWeightedMads,
    colWeightedMeans, colWeightedMedians, colWeightedSds,
    colWeightedVars, rowAlls, rowAnyNAs, rowAnys, rowAvgsPerColSet,
    rowCollapse, rowCounts, rowCummaxs, rowCummins, rowCumprods,
    rowCumsums, rowDiffs, rowIQRDiffs, rowIQRs, rowLogSumExps,
    rowMadDiffs, rowMads, rowMaxs, rowMeans2, rowMedians, rowMins,
    rowOrderStats, rowProds, rowQuantiles, rowRanges, rowRanks,
    rowSdDiffs, rowSds, rowSums2, rowTabulates, rowVarDiffs, rowVars,
    rowWeightedMads, rowWeightedMeans, rowWeightedMedians,
    rowWeightedSds, rowWeightedVars

Loading required package: S4Vectors

Attaching package:S4VectorsThe following object is masked frompackage:Matrix:

    expand

The following object is masked frompackage:base:

    expand.grid

Loading required package: IRanges

Attaching package:DelayedArrayThe following objects are masked frompackage:base:

    aperm, apply, rowsum

, , M3z1

      M1y1  M1y2  M1y3  M1y4  M1y5
         1     4     7    10    13
         2     5     8    11    14
         3     6     9    12    15
M2x1   101   108   115   122   129
M2x2   102   109   116   123   130
M2x3   103   110   117   124   131
M2x4   104   111   118   125   132
M2x5   105   112   119   126   133
M2x6   106   113   120   127   134
M2x7   107   114   121   128   135
M3x1 10001 10006 10011 10016 10021
M3x2 10002 10007 10012 10017 10022
M3x3 10003 10008 10013 10018 10023
M3x4 10004 10009 10014 10019 10024
M3x5 10005 10010 10015 10020 10025

, , M3z2

      M1y1  M1y2  M1y3  M1y4  M1y5
        16    19    22    25    28
        17    20    23    26    29
        18    21    24    27    30
M2x1   136   143   150   157   164
M2x2   137   144   151   158   165
M2x3   138   145   152   159   166
M2x4   139   146   153   160   167
M2x5   140   147   154   161   168
M2x6   141   148   155   162   169
M2x7   142   149   156   163   170
M3x1 10026 10031 10036 10041 10046
M3x2 10027 10032 10037 10042 10047
M3x3 10028 10033 10038 10043 10048
M3x4 10029 10034 10039 10044 10049
M3x5 10030 10035 10040 10045 10050

, , M3z3

      M1y1  M1y2  M1y3  M1y4  M1y5
        31    34    37    40    43
        32    35    38    41    44
        33    36    39    42    45
M2x1   171   178   185   192   199
M2x2   172   179   186   193   200
M2x3   173   180   187   194   201
M2x4   174   181   188   195   202
M2x5   175   182   189   196   203
M2x6   176   183   190   197   204
M2x7   177   184   191   198   205
M3x1 10051 10056 10061 10066 10071
M3x2 10052 10057 10062 10067 10072
M3x3 10053 10058 10063 10068 10073
M3x4 10054 10059 10064 10069 10074
M3x5 10055 10060 10065 10070 10075

, , M3z4

      M1y1  M1y2  M1y3  M1y4  M1y5
        46    49    52    55    58
        47    50    53    56    59
        48    51    54    57    60
M2x1   206   213   220   227   234
M2x2   207   214   221   228   235
M2x3   208   215   222   229   236
M2x4   209   216   223   230   237
M2x5   210   217   224   231   238
M2x6   211   218   225   232   239
M2x7   212   219   226   233   240
M3x1 10076 10081 10086 10091 10096
M3x2 10077 10082 10087 10092 10097
M3x3 10078 10083 10088 10093 10098
M3x4 10079 10084 10089 10094 10099
M3x5 10080 10085 10090 10095 10100

DelayedArray documentation built on March 25, 2021, 6:01 p.m.