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

Description Usage Arguments Value Author(s) Examples

View source: R/df2array.R

Description

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

Usage

1
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.

Author(s)

Elin Axelsson

Examples

1
2
3
4
5
6
7
8
9
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])

coRNAi documentation built on Nov. 17, 2017, 11:14 a.m.