df_typecast_all: Typecast all columns of a data.frame of a specific type

View source: R/utils-hammr.R

df_typecast_allR Documentation

Typecast all columns of a data.frame of a specific type

Description

Bulk convert columns of a data.frame that share a certain class to a different class. Use with care, will introduce NAs for some conversion attempts

Usage

df_typecast_all(dat, from = "factor", to = "character")

Arguments

dat

a data.frame

from

column type to cast

to

target column type

Value

a data frame with all columns of class from converted to class to


tatoo documentation built on March 31, 2023, 8:16 p.m.