select_df_columns_with_config: Select Dataframe Columns With Config

View source: R/select_dataframe_columns.R

select_df_columns_with_configR Documentation

Select Dataframe Columns With Config

Description

This function will select columns based on the Config. Only columns in the Config will be selected.

Usage

select_df_columns_with_config(tbl, config)

Arguments

tbl

A tibble

tbl <- dplyr::tribble( ~study, ~month, ~year, "s1", "January", 2001L )

config

A list with a named list named "columns" that has an entry for each column needed in the tibble. Each column must have a "name" field.

config <- list( "columns" = list( list("name" = "study"), list("name" = "month") ) )


Sage-Bionetworks/projectliveModules documentation built on June 26, 2022, 1:11 a.m.