convert_datatable_IntNum: Find and convert data.table columns from integer to numeric

Description Usage Arguments Details Author(s) See Also

View source: R/convert_datatable_int_to_num.R

Description

Converts a data.table's columns from integer to numeric. This conversion is done BY REFERENCE meaning that the original data.table is modified.

Usage

1

Arguments

dat

A data.table

cols

(optional) A subset of columns to search (see details)

Details

The data.table is returned invisibly if needed.

The cols can be specified as a character vector of column names. The entire data.table is returned, but only the columns in "cols" are searched. A warning is produced if no columns are integer.

Author(s)

Gene Leynes

See Also

data.table set


geneorama/geneorama documentation built on Oct. 17, 2020, 12:35 a.m.