coefs: Get coefs

coefsR Documentation

Get coefs

Description

Get coefs

Usage

coefs(featuredt, ...)

## S3 method for class 'factor'
coefs(featuredt, ...)

## S3 method for class 'data.table'
coefs(featuredt, fit = fits(featuredt), svars = NULL, ...)

Arguments

featuredt

data.table or factor

...

required for s3 dispatch

fit

string: 'limma', 'lm', 'lme', 'lmer'

svars

NULL or charactervector (svar for which to return coefs)

Value

character vector

Examples

# Factor
    x <- factor(c('A', 'B', 'C'))
    coefs(x)
    coefs(code(x, contr.treatment.explicit))
    coefs(code(x, code_control))
    
# SummarizedExperiment
    file <- system.file('extdata/atkin.metabolon.xlsx', package = 'autonomics')
    object <- read_metabolon(file, fit = 'limma')
    coefs(fdt(object))

bhagwataditya/importomics documentation built on April 20, 2024, 11:19 p.m.