makeCLS: function to create a valid cls file

Description Usage Arguments Value Author(s)

Description

This function makes a valid CLS file for phenotype data, as specified by the BROAD Institute for use with its GSEA tool. Function by Levi Waldron.

Usage

1
makeCLS(vec, fname, varname = NULL, continuousCategories = NULL)

Arguments

vec

a vector of any class

fname

Fully specified filename to which the CLS file will be written.

varname

variable name, needed only for numeric variables.

continuousCategories

number of categories to split numeric data into. Ignored for non-numeric data, or if equal to NULL.

Value

returns NULL; this function is called in order to write a valid .cls file.

Author(s)

Levi Waldron and Markus Riester


lwaldron/LeviRmisc documentation built on May 21, 2019, 8:59 a.m.