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

Description Usage Arguments Value

View source: R/utils-hammr.R

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

1
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 Feb. 12, 2018, 5:01 p.m.