list_bar: Extract Categorical and Numeric Data from a Data Frame

View source: R/list-helpers.R

list_barR Documentation

Extract Categorical and Numeric Data from a Data Frame

Description

This function takes a data frame and extracts categorical and numeric data from four specified columns. It returns a list of data that can be used for visualizations.

Usage

list_bar(data, frtype)

Arguments

data

A data frame.

frType

a string indicating the format of the data frame (e.g., "CatNum", "DatNum", "CatCatNum")

Value

A list containing a data frame that has the following columns: "name", "y", "..label", and "..color".


randommonkey/hgchmagic documentation built on Aug. 23, 2023, 5:56 a.m.