Learn R Programming

backports (version 1.5.0)

asplit: Backport of asplit for R < 3.6.0

Description

See the original description in base::asplit.

Usage

asplit(x, MARGIN)

Arguments

Examples

Run this code
# 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)

Run the code above in your browser using DataLab