assign_by_colnames_1: Given a data frame, loop through a list of (col.name,...

Description Usage Arguments Value

Description

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.

Usage

1

Arguments

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)

Value

Alters the global environment, doesn't return any object.


johnchower/glootility documentation built on May 19, 2019, 3:03 p.m.