Learn R Programming

splus2R (version 1.3-5)

is.rectangular: Checks for object rectangularity

Description

Returns TRUE if the input object is rectangular.

Usage

is.rectangular(x)

Value

logical, returns TRUE if input object is rectangular.

Arguments

x

any object.

See Also

as.rectangular.

Examples

Run this code
is.rectangular(matrix(1:12, nrow=3))
is.rectangular(list(1:3,2:4))
is.rectangular(as.rectangular(list(1:3,2:4)))

Run the code above in your browser using DataLab