Learn R Programming

healthyR (version 0.1.4)

named_item_list: Tibble to named list

Description

Takes in a data.frame/tibble and creates a named list from a supplied grouping variable. Can be used in conjunction with save_to_excel() to create a new sheet for each group of data.

Usage

named_item_list(.data, .group_col)

Arguments

.data

The data.frame/tibble

.group_col

The column that contains the groupings

Details

  • Requires a data.frame/tibble and a grouping column

Examples

Run this code
# NOT RUN {
library(healthyR.data)

df <- healthyR_data
df_list <- named_item_list(.data = df, .group_col = service_line)
df_list

# }

Run the code above in your browser using DataLab