Learn R Programming

panstarrs (version 0.2.3)

convert_types: Convert types.

Description

Helper function.

Usage

convert_types(dt, cols, types)

Value

a data frame with correct data types

Arguments

dt

data.table or data.frame

cols

which cols convert

types

"char", "long", "unsignedByte", "int", "short", "double", "float"