asplit {backports}R Documentation

Backport of asplit for R < 3.6.0

Description

See the original description in base::asplit.

Usage

asplit(x, MARGIN)

Examples

Run examples

# get function from namespace instead of possibly getting
# implementation shipped with recent R versions:
bp_asplit = getFromNamespace("asplit", "backports")
x = matrix(1:6, 2, 3)
bp_asplit(x, 1)

[Package backports version 1.4.1 Index]