select_numeric_cols: Select Numeric Columns

View source: R/select_numeric_cols.R

select_numeric_colsR Documentation

Select Numeric Columns

Description

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

Usage

select_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 numeric columns.

Examples

select_numeric_cols(iris)

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