as.tabular

0th

Percentile

Convert matrix or dataframe to tabular object.

These functions construct or copy labels onto an existing matrix or dataframe.

Usage
as.tabular(x, like = NULL)
# S3 method for default
as.tabular(x, like = NULL)
# S3 method for data.frame
as.tabular(x, like = NULL)
Arguments
x

The object to convert.

like

If not NULL, should be a tabular object with the same number of rows and columns as x. Its labels will be used on the result.

Value

A tabular object.

See Also

as.matrix.tabular

Aliases
  • as.tabular
  • as.tabular.default
  • as.tabular.data.frame
Examples
# NOT RUN {
model <- tabular( (Species + 1) ~ (n=1) + Sepal.Length + Sepal.Width, data=iris )
model
as.tabular(matrix(1:12, 4,3), like=model)
# }
Documentation reproduced from package tables, version 0.8.8, License: GPL-2

Community examples

Looks like there are no examples yet.