Learn R Programming

coRNAi (version 1.22.0)

df2fitmatrix: matrix for lmFit from dataframe

Description

converts a dataframe into the right format for lmFit function

Usage

df2fitmatrix(df)

Arguments

df
dataframe from cellHTS2df function

Value

A matrix with the genepairs as rows and the replicates as columns. This matrix is in the right format for the lmFit.

See Also

df2lmFit

Examples

Run this code


data(screen1_raw)
df = cellHTS2df(screen1_raw,neutral="Fluc")
df = weightDf(df)
lmm = lmmain(df)
df = updateDf(df,lmm)
mfit = df2fitmatrix(df)
head(mfit)

Run the code above in your browser using DataLab