fix_datatypes: Adjust the data types for columns of a meta data frame

Description Usage Arguments Details Value See Also Examples

View source: R/io.R

Description

GCT(X) parsing initially returns data frames of row and column descriptors where all columns are of type character. This is inconvenient for analysis, so the goal of this function is to try and guess the appropriate data type for each column.

Usage

1
2
3

Arguments

...

arguments passed on to fix_datatypes

meta

a data.frame

Details

This is a low-level helper function which most users will not need to access directly

Value

meta the same data frame with (potentially) adjusted column types.

See Also

Other GCTX parsing functions: GCT, append.dim(), parse.gctx(), process_ids(), read.gctx.ids(), read.gctx.meta(), write.gctx.meta(), write.gctx(), write.gct()

Examples

1
2
3
4
5
# meta data table with all character types
str(cdesc_char)
fixed <- cmapR:::fix_datatypes(cdesc_char)
# note how some column classes have changed
str(fixed)

cmapR documentation built on Dec. 12, 2020, 2 a.m.