append_rownames | R Documentation |
Convert Row Names to an Explicit Column
append_rownames(x, ...)
## S4 method for signature 'data.frame'
append_rownames(x, after = 0, remove = TRUE, var = "rownames")
x |
A |
... |
Currently not used. |
after |
A length-one |
remove |
A |
var |
A |
A data.frame
.
N. Frerebeau
Other data preparation tools:
append_column()
,
assign()
,
compact()
,
count()
,
detect()
,
discard()
,
get()
,
keep()
,
seek()
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.