grep_cols: Find p-value or stat columns in table

View source: R/grep_cols.R

grep_colsR Documentation

Find p-value or stat columns in table

Description

Find p-value or stat column names in table and check their validity. If no columns are found, it returns an error.

Usage

grep_cols(tab, p.cols = NULL, stat.cols = NULL)

Arguments

tab

Matrix-like object with statistical columns, some containing p-values.

p.cols

Indices or regexp with column names or column names suffix of numeric p-value columns.

stat.cols

Indices or regexp with column names or column names suffix with numeric signed statistics, or with "Up", "Down" values.

Details

Exactly one of p.cols or stat.cols should not be NULL.

Value

Vector of column names.


jdreyf/ezlimma documentation built on April 28, 2024, 1:10 p.m.