should_unlist: Tell whether a column can be unlisted

View source: R/matsindf_apply.R

should_unlistR Documentation

Tell whether a column can be unlisted

Description

When evaluating each row of a data frame in matsindf_apply(), the result will be a tibble with list columns. This function tells whether a column can be unlisted. This is internal helper function and should not be called externally.

Usage

should_unlist(this_col)

Arguments

this_col

The column to be checked. Or a data.frame, in which case every column is checked.

Value

A boolean. TRUE if the column can be unlisted, FALSE otherwise. When this_col is a data.frame, a named boolean vector, one entry for each column.


matsindf documentation built on Aug. 18, 2023, 5:06 p.m.