Learn R Programming

arkhe (version 0.5.0)

assign: Assign a specific row/column to the column/row names

Description

Assign a specific row/column to the column/row names

Usage

assign_colnames(x, ...)

assign_rownames(x, ...)

# S4 method for data.frame assign_rownames(x, column, remove = TRUE)

# S4 method for data.frame assign_colnames(x, row, remove = TRUE)

Value

A data.frame.

Arguments

x

A data.frame.

...

Currently not used.

column

A length-one numeric vector specifying the column number that is to become the row names.

remove

A logical scalar: should the specified row/column be removed after making it the column/row names?

row

A length-one numeric vector specifying the row number that is to become the column names.

Author

N. Frerebeau

See Also

Other data cleaning tools: count(), detect(), remove(), replace()