Learn R Programming

splus2R (version 1.3-5)

as.rectangular: Covnert to rectangular object

Description

Rectangular data objects include matrices, data frames, and atomic vectors.

Value

as.rectangular(x) returns x if x is already rectangular, or as.data.frame(x) if it is not.

Arguments

x

object to be converted to rectangular data.

i

first (row) subscript

j

second (column) subscript.

See Also

is.rectangular.

Examples

Run this code
## 
as.rectangular(list(a=1:10, b=11:20))

Run the code above in your browser using DataLab