Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

as.rectangular

Covnert to rectangular object


Description

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))

splus2R

Supplemental S-PLUS Functionality in R

v1.3-3
GPL-2
Authors
William Constantine [aut], Tim Hesterberg [aut], Knut Wittkowski [ctb], Tingting Song [ctb], Bill Dunlap [ctb], Stephen Kaluzny [ctb, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.