vars_of_type: Find variables within a dataset This function finds variables...

vars_of_typeR Documentation

Find variables within a dataset This function finds variables of a specific type within a dataset Adapted (i.e. stolen) from https://mastering-shiny.org/scaling-modules.html#case-study-selecting-a-numeric-variable The type argument will lead to a function - Usually is.numeric or is.character

Description

Find variables within a dataset

This function finds variables of a specific type within a dataset

Adapted (i.e. stolen) from https://mastering-shiny.org/scaling-modules.html#case-study-selecting-a-numeric-variable The type argument will lead to a function - Usually is.numeric or is.character

Usage

vars_of_type(data, type = c("numeric", "character", "factor"))

Arguments

data

A dataframe

type

The type of the variable. One of c("numeric", "character", "factor")

Value

A character vector of variable names


lefkiospaikousis/ClusterAnalysis documentation built on July 18, 2022, 1:55 p.m.