dt_set_autotypes: Set column types automatically

View source: R/dt_ops.R

dt_set_autotypesR Documentation

Set column types automatically

Description

This function inspects a data.table and attempts to identify columns that should be numeric but have been read in as character, because one or more fields contain non-numeric characters

Usage

dt_set_autotypes(x, cols = NULL, verbose = TRUE)

Arguments

x

data.table

cols

Character vector: columns to work on. If not defined, will work on all columns

verbose

Logical: If TRUE, print messages to console

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on Dec. 17, 2024, 6:16 p.m.