getColClasses {limma} | R Documentation

## Construct colClasses vector for use within read.table

### Description

Construct a `colClasses` vector, an argument in `read.table` used in `read.maimages`

### Usage

    getColClasses(cols, ...)

### Arguments

`cols` | A character vector of all columns to search against
`...` | Accepts any character lists, character vectors, or weight functions to match wanted columns against `cols`

### Details

This is an internally called function by `read.maimages` to create a colClasses vector used in `read.table` for fast loading of only required columns in `read.maimages`

### Value

Character. A named vector of classes to be assumed for the columns. Possible values are NA (when `type.convert` is used), "NULL" (when the column is skipped)

### Author(s)

Marcus Davy

### See Also

`wtVariables`

### Examples

    allcnames <- c("Block","Column","Row","Name","ID", "F635 Mean","F532 Mean","Flag","Autoflag")
    Annotation <- c("Block","Column")
    Columns <- list(R="F635 Mean",G="F532 Mean")
    Other.columns <- "Autoflag"

    getColClasses(allcnames, Annotation, Columns, Other.columns, wtflags)
    rm(allcnames, Annotation, Columns, Other.columns) # tidy up

[Package limma version 2.8.1 Index]