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

Arguments

x

object to be converted to rectangular data.

i

first (row) subscript

j

second (column) subscript.

Value

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

See also

Examples

## 
as.rectangular(list(a=1:10, b=11:20))
#>     a  b
#> 1   1 11
#> 2   2 12
#> 3   3 13
#> 4   4 14
#> 5   5 15
#> 6   6 16
#> 7   7 17
#> 8   8 18
#> 9   9 19
#> 10 10 20