Learn R Programming

rray (version 0.0.0.9000)

is_reshapeable: Check if x can be reshaped

Description

x is reshapeable to dim if the number of elements in x equal the number of elements implied by dim, i.e. prod(dim).

Usage

is_reshapeable(x, dim)

Arguments