rown_to_var | R Documentation |
creates a variable from the row names, optionally makes it the first variable, optionally removes the row names, and names it what you want
rown_to_var(df, keeprn = FALSE, makefirst = TRUE, varname = "terms")
df |
a dataframe for which you want to turn row names into a variable |
keeprn |
boolean indicating whether you want the rownames kept as rownames after they get added as a variable. default is FALSE |
makefirst |
boolean indicating whether you want to make the rownames the first variable in the dataframe. default is TRUE |
varname |
the name given to the new variable containing the rownames. default is 'terms' |
rown_to_var_function()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.