get_column_key: Get Column Key based on the names in a data frame

View source: R/Plot_Labels.R

get_column_keyR Documentation

Get Column Key based on the names in a data frame

Description

Get Column Key based on the names in a data frame

Usage

get_column_key(
  data,
  path = "https://raw.githubusercontent.com/CSISdefense/Lookup-Tables/master/style/"
)

Arguments

data

A data frame

path

The path or url for the column key. By default, checks the CSISdefense Github lookups repository at CSISdefense/Lookup-Tables/master/style/

Details

Warning: This function should be used in data processing only, not in a live app. It reads an external file from GitHub, which will slow down an app substantially if done repeatedly. Works best when standardize_names has already been run on the data frame in question.

Value

A data frame of the column names from data joined up to the column key

Examples


FullData <- read_csv("2017_SP_CompetitionVendorSizeHistoryBucketPlatformSubCustomer.csv",
  col_names = TRUE, col_types = "cccccccccc",na=c("NA","NULL"))
PrepareLabelsAndColors(Coloration,FullData,"Customer")


CSISdefense/csis360 documentation built on April 25, 2024, 12:01 a.m.