Description Usage Arguments Value
Given a data frame, loop through a list of (col.name, assigned_name) pairs, If the column names match col.name, assign the data frame to the corresponding assigned_name.
1 | assign_by_colnames_1(df, name_list, ...)
|
df |
A data frame. |
name_list |
A list of key-value pairs of the form list(list(col.names = c("name1", "name2"), assigned_name = "out_name"), list(col.names = c("name3"), assigned_name = "out_name2")). Such lists are generated from JSON files (see csv_test/name_list.JSON) |
Alters the global environment, doesn't return any object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.