filter_args: Filters NULL and FALSE arguments from a list

View source: R/utils.R

filter_argsR Documentation

Filters NULL and FALSE arguments from a list

Description

This function checks whether any elements in a list are NULL or FALSE and removes them.

Usage

filter_args(x, filter_null = TRUE, filter_false = TRUE)

Arguments

x

list. The user-query list

filter_null

logical. Should NULL value queries be filtered?

filter_false

logical. Should FALSE value queries be filtered?

Value

A NULL and FALSE filtered list of x.


rmacrostrat documentation built on Oct. 18, 2024, 5:10 p.m.