append {arkhe} | R Documentation |
Convert Row Names to an Explicit Column
Description
Convert Row Names to an Explicit Column
Usage
append_rownames(x, ...)
## S4 method for signature 'data.frame'
append_rownames(x, after = 0, remove = TRUE, var = "rownames")
Arguments
x |
A |
... |
Currently not used. |
after |
A length-one |
remove |
A |
var |
A |
Value
A data.frame
.
Author(s)
N. Frerebeau
See Also
Other data preparation tools:
assign()
,
compact()
,
count()
,
detect()
,
discard()
,
get()
,
keep()
,
seek()
Examples
X <- data.frame(
x = 1:5,
y = 6:10,
z = LETTERS[1:5]
)
## Assign column to row names
(Y <- assign_rownames(X, 3))
## Append row names to data.frame
(Z <- append_rownames(Y))
[Package arkhe version 1.7.0 Index]