Skip to contents

Set the types of the columns of a data frame.

Usage

set_types(data, types)

Arguments

data

data frame

types

dict-like list with keys giving column names and values giving types

Value

data frame with changed column types – note that the returned data frame is a plain base R data.frame (i.e. not a tibble or data.table).