add_column_to_dataframe | R Documentation |
Add a column to a data frame
add_column_to_dataframe(df, position, column_to_insert)
df |
data frame to add the column to |
position |
location in data frame where to insert the column. Position can also be a name of a column |
column_to_insert |
the elements of the column to insert. If the column has a name, this name will be copied into the data frame. Id is does not have a name, it will get the name "nc". |
A data frame with the column inserted
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.