drop_empty_subs: Drop rows with empty nested data frames

View source: R/nested_df.R

drop_empty_subsR Documentation

Drop rows with empty nested data frames

Description

Drops rows that for a given column of nested data frames, have NULL values. Optionally, rows with nested data frames that have 0 rows can also be dropped.

Usage

drop_empty_subs(df, data_col_name, empty_df = TRUE)

Arguments

df

A data frame / tibble

data_col_name

The column name of the nested data frames, bare or as a string.

empty_df

If TRUE, also drops rows with data frames that have 0 rows.


burchill/zplyr documentation built on Feb. 2, 2023, 11:01 a.m.