Learn R Programming

coRNAi (version 1.22.0)

df2array: function to do go from data frame to an array with values

Description

The function transforms a float column in a data frame (from cHTS2df) to an array.

Usage

df2array(df, what)

Arguments

df
Data frame (from cellHTS2df) with additional column weights.
what
which column contains the data, eg. value or residuals

Value

An array with the data from the data frame.

Examples

Run this code

data(screen1_raw)
df = cellHTS2df(screen1_raw,neutral = "Fluc")
df$weights = as.numeric(df$Type=="comb")

aa = df2array(df,what="value")

## see head for first replicate

head(aa[,,1])

Run the code above in your browser using DataLab