select_non_numeric_cols: Select Non-Numeric Columns

View source: R/select_non_numeric_cols.R

select_non_numeric_colsR Documentation

Select Non-Numeric Columns

Description

Returns a tibble with only the non-numeric columns of the input, and optionally drops rows with NAs.

Usage

select_non_numeric_cols(dataset, remove_na = FALSE)

Arguments

dataset

A vector, matrix, data frame, or tibble.

remove_na

Logical. If TRUE, rows with any NA values will be dropped. Default is FALSE.

Value

A tibble with only non-numeric columns.

Examples

select_non_numeric_cols(iris)

df <- tibble::tibble(a = 1:6, b = c("x", "y", NA, NA, "z", NA))
select_non_numeric_cols(df, remove_na = TRUE)

tidySummaries documentation built on June 8, 2025, 11:35 a.m.