bind_table: Column Bind a Table's Values with Its Names

Description Usage Arguments Value Examples

View source: R/bind_table.R

Description

Deprecated, use tidy_table instead.

Usage

1
bind_table(x, id.name = "id", content.name = "content", ...)

Arguments

x

A table.

id.name

The name to use for the column created from the table names.

content.name

The name to use for the column created from the table values.

...

ignored.

Value

Returns a data.table with the names from the table as an id column.

Examples

1
2
3
4
5
## Not run: 
x <- table(sample(LETTERS[1:6], 1000, TRUE))
bind_table(x)

## End(Not run)

Example output

   id content
1:  A     179
2:  B     169
3:  C     161
4:  D     167
5:  E     174
6:  F     150
Warning message:
Deprecated, use textshape::tidy_table() instead.
`bind_table()` will be removed in the next version. 

textshape documentation built on May 29, 2021, 1:07 a.m.