fix.datatypes {cmapR} | R Documentation

## Adjust the data types for columns of a meta data frame

### 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

    fix.datatypes(...)

    fix_datatypes(meta)

### 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

    # 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)

[Package cmapR version 1.0.0 Index]