gather_symbol | R Documentation |
Create symbol column by peeling prefix from column names
gather_symbol
creates the symbol column of a
data.frame
from the prefix of other columns
for use after converting from quantmod xts symbols.
gather_symbol(df, symbol = "symbol", index = "index", sep = ".",
drop = TRUE)
df |
A |
symbol |
The name of the symbol column. |
index |
Columns not to rename. Also, attributes of this column are preserved. |
sep |
Separator between the symbol prefix and the column names. |
drop |
If TRUE (the default), symbols with dates of only NAs will be dropped. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.