retype: Retype Variable

Description Usage Arguments Value Author(s) Examples

Description

retype is a typecasting function which can be used in the tidy workflow to change the type of multiple functions within a data.frame in-line.

Usage

1

Arguments

df:

data.frame with values to typecast

...:

unquoted list alternating variables and datatypes to convert to

Value

Data.frame df with listed variables updated to specified data types

Author(s)

Samuel Callisto calli055@umn.edu

Examples

1
2
iris2 <- iris %>% select(Species, Sepal.Length) %>% retype(Species, character)
str(iris2)

callistosp/dataTools documentation built on May 3, 2019, 4:31 p.m.